rvaiya / warpd

A modal keyboard-driven virtual pointer
MIT License
2.9k stars 131 forks source link

Adds macos arrow keys to valid keys #220

Closed jakenvac closed 1 year ago

jakenvac commented 1 year ago

Simple PR to allow the use of arrow keys to move cursor on macos. I didn't make the same change of linux as I have no idea what I'm doing. 😎

my motivation for adding these keys is that I use home row modifiers so hjkl aren't viable keys to hold down. I have a function button that turns hjkl into the arrow keys to work around that problem and thus use warped.

ned-si commented 1 year ago

Same issue here, but on Linux.

@rvaiya any idea if it can be implemented easily like @jakehl is proposing for macos?

jakenvac commented 1 year ago

The code base isn't too hard to navigate if you fancy having a go by yourself. I don't currently have a linux system to try but if you look at my changes I imagine it's similar.

WonderBeat commented 1 year ago

Verified on OSX 13.2. works well

rvaiya commented 1 year ago

Looks good. Sorry this took so long to merge.

@ned-si Can you be more specific? It should be possible to bind the arrow keys on linux using 'Right', 'Left', etc (see warpd --list-keys for a full list)