2mol / pboy

a small .pdf management tool with a command-line UI
BSD 3-Clause "New" or "Revised" License
737 stars 24 forks source link

"New filename" input doesn't handle Home/End keys #29

Open n-st opened 5 years ago

n-st commented 5 years ago

One can't jump to the beginning/end of the filename input with the Home/End keys. According to its documentation, the Bricks Editor only supports Ctrl+A/Ctrl+E for that.

We could manually register an event handler and match on EvKey events with KHome/KEnd, but I'm not sure if/how it's possible to change the cursor position in the editor…

I'll just leave this here as a reference for anyone who encounters the same behaviour; it doesn't necessarily need to be "fixed". :)