mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-25 02:20:53 +00:00
disable preview popup for language switch and emoji keys
This commit is contained in:
parent
6a34f2c832
commit
5ccb79a078
1 changed files with 3 additions and 2 deletions
|
@ -1156,9 +1156,10 @@ public class Key implements Comparable<Key> {
|
||||||
actionFlags |= ACTION_FLAGS_NO_KEY_PREVIEW;
|
actionFlags |= ACTION_FLAGS_NO_KEY_PREVIEW;
|
||||||
switch (mCode) {
|
switch (mCode) {
|
||||||
case KeyCode.DELETE, KeyCode.SHIFT, Constants.CODE_ENTER, KeyCode.SHIFT_ENTER, KeyCode.ALPHA, Constants.CODE_SPACE, KeyCode.NUMPAD,
|
case KeyCode.DELETE, KeyCode.SHIFT, Constants.CODE_ENTER, KeyCode.SHIFT_ENTER, KeyCode.ALPHA, Constants.CODE_SPACE, KeyCode.NUMPAD,
|
||||||
KeyCode.SYMBOL, KeyCode.SYMBOL_ALPHA -> actionFlags |= ACTION_FLAGS_NO_KEY_PREVIEW; // no preview even if icon!
|
KeyCode.SYMBOL, KeyCode.SYMBOL_ALPHA, KeyCode.LANGUAGE_SWITCH, KeyCode.EMOJI, KeyCode.CLIPBOARD -> actionFlags |= ACTION_FLAGS_NO_KEY_PREVIEW; // no preview even if icon!
|
||||||
case KeyCode.SETTINGS, KeyCode.LANGUAGE_SWITCH -> actionFlags |= ACTION_FLAGS_ALT_CODE_WHILE_TYPING;
|
|
||||||
}
|
}
|
||||||
|
if (mCode == KeyCode.SETTINGS || mCode == KeyCode.LANGUAGE_SWITCH)
|
||||||
|
actionFlags |= ACTION_FLAGS_ALT_CODE_WHILE_TYPING;
|
||||||
if (mCode == KeyCode.DELETE)
|
if (mCode == KeyCode.DELETE)
|
||||||
actionFlags |= ACTION_FLAGS_IS_REPEATABLE;
|
actionFlags |= ACTION_FLAGS_IS_REPEATABLE;
|
||||||
mActionFlags = actionFlags;
|
mActionFlags = actionFlags;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue