diff options
| author | Jules Aguillon | 2023-08-17 12:47:44 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-08-17 12:47:44 +0200 |
| commit | 5123ce5417716bedac970ba34432cf7d43d64d62 (patch) | |
| tree | 3aedc6e1e520bf8e4cdede60f6c829a6d0f1911f /res | |
| parent | 2dc0ce066d44196e91e27db47e496b870e21b0dd (diff) | |
| download | unexpected-keyboard-5123ce5417716bedac970ba34432cf7d43d64d62.tar.gz unexpected-keyboard-5123ce5417716bedac970ba34432cf7d43d64d62.zip | |
Fix slider movements changing input focus
The slider was repeatedly sending arrow keys, which change the focused
input when the end of a text box is hit.
A new key is added that implements cursor movements using the
`InputConnection` API.
The new keys are defined as `KeyValue.Editing`, which are no longer only
context menu actions.
The behavior when a selection has started is changed. The selection is
modified instead of cleared even when shift isn't pressed or the
selection would become empty.
Fallbacks to sending arrow keys for editors that do not support the API,
like Termux.
Diffstat (limited to 'res')
| -rw-r--r-- | res/xml/bottom_row.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/xml/bottom_row.xml b/res/xml/bottom_row.xml index ea7b814..b51ca2d 100644 --- a/res/xml/bottom_row.xml +++ b/res/xml/bottom_row.xml @@ -2,7 +2,7 @@ <row height="0.95"> <key width="1.7" key0="ctrl" key1="loc switch_greekmath" key2="loc meta" key4="switch_numeric"/> <key width="1.1" key0="fn" key1="loc alt" key2="change_method" key3="switch_emoji" key4="config"/> - <key width="4.4" key0="space" key7="switch_forward" key8="switch_backward" key5="left" key6="right" slider="true"/> + <key width="4.4" key0="space" key7="switch_forward" key8="switch_backward" key5="cursor_left" key6="cursor_right" slider="true"/> <key width="1.1" key7="up" key6="right" key5="left" key8="down"/> <key width="1.7" key0="enter" key1="loc voice_typing" key2="action"/> </row> |
