Refactor: Move editing code from to KeyEventHandler

Remove the code dealing with InputMethodConnection from 'Keyboard2' and
move it into 'KeyEventHandler', where more editing actions can now be
implemented.

Autocapitalisation is also moved, the IReceiver interface is simplified.
This commit is contained in:
Jules Aguillon
2022-11-13 16:18:08 +01:00
parent 22a7df6632
commit 078dbcd5ff
7 changed files with 104 additions and 101 deletions

View File

@@ -126,13 +126,13 @@ public class Keyboard2View extends View
public void onPointerUp(KeyValue k, Pointers.Modifiers mods)
{
_config.handler.handleKeyUp(k, mods);
_config.handler.key_up(k, mods);
invalidate();
}
public void onPointerHold(KeyValue k, Pointers.Modifiers mods)
{
_config.handler.handleKeyUp(k, mods);
_config.handler.key_up(k, mods);
}
public void onPointerFlagsChanged(boolean shouldVibrate)