mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-17 07:22:45 +00:00
Space swipe to toggle numpad layout, with side bonuses (#950)
* make the numpad key toggle-based, allowing for use in its own layout. it also remembers the symbols-shift state. * add space swipe gesture to toggle the numpad * fix sliding key input for the numpad key bugs
This commit is contained in:
parent
309d7f299e
commit
105d044aa8
15 changed files with 129 additions and 38 deletions
|
@ -381,6 +381,7 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
|
|||
return switch (prefs.getString(PREF_SPACE_HORIZONTAL_SWIPE, "none")) {
|
||||
case "move_cursor" -> KeyboardActionListener.SWIPE_MOVE_CURSOR;
|
||||
case "switch_language" -> KeyboardActionListener.SWIPE_SWITCH_LANGUAGE;
|
||||
case "toggle_numpad" -> KeyboardActionListener.SWIPE_TOGGLE_NUMPAD;
|
||||
default -> KeyboardActionListener.SWIPE_NO_ACTION;
|
||||
};
|
||||
}
|
||||
|
@ -389,6 +390,7 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
|
|||
return switch (prefs.getString(PREF_SPACE_VERTICAL_SWIPE, "none")) {
|
||||
case "move_cursor" -> KeyboardActionListener.SWIPE_MOVE_CURSOR;
|
||||
case "switch_language" -> KeyboardActionListener.SWIPE_SWITCH_LANGUAGE;
|
||||
case "toggle_numpad" -> KeyboardActionListener.SWIPE_TOGGLE_NUMPAD;
|
||||
default -> KeyboardActionListener.SWIPE_NO_ACTION;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue