rkkr / simple-keyboard

Apache License 2.0
1.13k stars 225 forks source link

Reset the subtype cycle order for more actions #463

Closed wittmane closed 4 months ago

wittmane commented 4 months ago

When changing the subtype by pressing the language switch key we need to track when the subtype is used to be able to keep the order of subtypes in order of most recently used.

Currently, the subtype is only marked as being used when committing text (and when finishing the input view). The subtype isn't marked as being used when sending a key press (entering numbers, backspacing, or moving the cursor when the cursor position is unknown), performing recapitalization, or moving the cursor position with swiping. Now those actions will also mark the subtype as being used.