mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Remove long press settings key function"
This commit is contained in:
commit
d549d4334f
@ -409,19 +409,16 @@ public class LatinKeyboardView extends KeyboardView implements PointerTracker.Ke
|
||||
invokeReleaseKey(primaryCode);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (primaryCode == Keyboard.CODE_SETTINGS || primaryCode == Keyboard.CODE_SPACE) {
|
||||
// Both long pressing settings key and space key invoke IME switcher dialog.
|
||||
if (invokeCustomRequest(LatinIME.CODE_SHOW_INPUT_METHOD_PICKER)) {
|
||||
tracker.onLongPressed();
|
||||
invokeReleaseKey(primaryCode);
|
||||
return true;
|
||||
} else {
|
||||
return openMoreKeysPanel(parentKey, tracker);
|
||||
if (primaryCode == Keyboard.CODE_SPACE) {
|
||||
// Long pressing the space key invokes IME switcher dialog.
|
||||
if (invokeCustomRequest(LatinIME.CODE_SHOW_INPUT_METHOD_PICKER)) {
|
||||
tracker.onLongPressed();
|
||||
invokeReleaseKey(primaryCode);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return openMoreKeysPanel(parentKey, tracker);
|
||||
}
|
||||
return openMoreKeysPanel(parentKey, tracker);
|
||||
}
|
||||
|
||||
private boolean invokeCustomRequest(int code) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user