mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-08-19 12:45:06 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user