Julow / Unexpected-Keyboard

A lightweight virtual keyboard for developers.
GNU General Public License v3.0
1.25k stars 168 forks source link

Unable to add multiple cursors in editor #590

Open michaelsboost opened 3 months ago

michaelsboost commented 3 months ago

The Ctrl key is nice (ctrl+c, ctrl+v, ctrl+z all worked fine, but ctrl+shift+z failed), but my attempt to use the ctrl key to add multiple cursors in my IDE failed. I tried another that required the Alt key and it also failed. In addition, another issue I have is when the shift key is enabled/active. When I tap on another area in the IDE or even a Notepad, it doesn't create a selection from the cursors' starting position. Lastly, have arrow keys instead of space bar or the other slide option.

michaelsboost commented 3 months ago

After reading the documentation of the editor it makes sense why taps don't work to add another cursor because it requires a mouse event which won't work for phones - https://codemirror.net/docs/ref/#view.EditorView%5EclickAddsSelectionRange

Julow commented 3 months ago

Thanks for the issue. It's possible that a tap is turned into a mouse event. Can you log the keyboard and mouse events and see ? We'd see whether the editor receives the ctrl event or not.

starchyunderscore commented 2 months ago

try ctrl+y instead of ctrl+shift+z

it seems most more modern applications use that keybinding for redo instead