Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

Editing mode

Open Julow opened this issue 3 years ago • 1 comments

Currently, the keyboard only types characters or sends key events but different versions of Android and different applications don't behave the same and sometimes in clearly broken ways. For example, Shift+Delete is inconsistently supported: https://github.com/Julow/Unexpected-Keyboard/issues/241; FluffyChat crashes receiving Ctrl+Delete or Shift+Delete: #99

The keyboard should take care of some editing actions (eg. copy, paste, selection, delete a word, etc...) instead of sending the key events directly (eg. Ctrl+C, Ctrl+V, Shift+Arrows, etc...).

This editing mode should only be enabled when it's not interfering with the application. For example it should be enabled in FluffyChat but disabled in Termux. There might be text editors/notes apps with keyboard shortcuts, some investigations are needed to know how to detect them.

Julow avatar Nov 13 '22 15:11 Julow

Here are some problems that could be solved by this feature:

  • Ctrl+C doesn't work in many cases (https://github.com/Julow/Unexpected-Keyboard/issues/101#issuecomment-1070814268)
  • Some apps interpret modified keys differently (https://github.com/Julow/Unexpected-Keyboard/issues/99)
  • Cycle through lowercase, titlecase and uppercase for the selected text by taping shift. Suggested in https://github.com/Julow/Unexpected-Keyboard/issues/305#issuecomment-1483883049 and https://github.com/Julow/Unexpected-Keyboard/issues/372
  • Undo and redo are not always working.

Julow avatar Jun 03 '23 07:06 Julow