enabled OK when the command palette is open
This commit is contained in:
parent
a6c46ff598
commit
c628217ea9
2 changed files with 1 additions and 10 deletions
|
|
@ -31,6 +31,7 @@ abstract public class CommandHandler extends VoiceHandler {
|
||||||
public boolean onBackspace() {
|
public boolean onBackspace() {
|
||||||
if (mainView.isCommandPaletteShown()) {
|
if (mainView.isCommandPaletteShown()) {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.onBackspace();
|
return super.onBackspace();
|
||||||
|
|
@ -58,12 +59,6 @@ abstract public class CommandHandler extends VoiceHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onOK() {
|
|
||||||
return mainView.isCommandPaletteShown();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private void onCommand(int key) {
|
private void onCommand(int key) {
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
|
||||||
|
|
@ -39,10 +39,6 @@ public abstract class HotkeyHandler extends CommandHandler {
|
||||||
|
|
||||||
|
|
||||||
@Override public boolean onOK() {
|
@Override public boolean onOK() {
|
||||||
if (super.onOK()) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
suggestionOps.cancelDelayedAccept();
|
suggestionOps.cancelDelayedAccept();
|
||||||
|
|
||||||
if (!suggestionOps.isEmpty()) {
|
if (!suggestionOps.isEmpty()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue