am d549d433: Merge "Remove long press settings key function"
* commit 'd549d4334f05737128061a595a0a3304b1af00b6': Remove long press settings key functionmain
commit
5e58cd999c
|
@ -409,19 +409,16 @@ public class LatinKeyboardView extends KeyboardView implements PointerTracker.Ke
|
||||||
invokeReleaseKey(primaryCode);
|
invokeReleaseKey(primaryCode);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
if (primaryCode == Keyboard.CODE_SPACE) {
|
||||||
if (primaryCode == Keyboard.CODE_SETTINGS || primaryCode == Keyboard.CODE_SPACE) {
|
// Long pressing the space key invokes IME switcher dialog.
|
||||||
// Both long pressing settings key and space key invoke IME switcher dialog.
|
if (invokeCustomRequest(LatinIME.CODE_SHOW_INPUT_METHOD_PICKER)) {
|
||||||
if (invokeCustomRequest(LatinIME.CODE_SHOW_INPUT_METHOD_PICKER)) {
|
tracker.onLongPressed();
|
||||||
tracker.onLongPressed();
|
invokeReleaseKey(primaryCode);
|
||||||
invokeReleaseKey(primaryCode);
|
return true;
|
||||||
return true;
|
}
|
||||||
} else {
|
|
||||||
return openMoreKeysPanel(parentKey, tracker);
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
return openMoreKeysPanel(parentKey, tracker);
|
|
||||||
}
|
}
|
||||||
|
return openMoreKeysPanel(parentKey, tracker);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean invokeCustomRequest(int code) {
|
private boolean invokeCustomRequest(int code) {
|
||||||
|
|
Loading…
Reference in New Issue