timower / rM2-stuff

Collection of reMarkable related apps, utilities and libraries.
GNU General Public License v3.0
123 stars 10 forks source link

Keymap handling for type folio requires improvement #19

Open i-am-shodan opened 11 months ago

i-am-shodan commented 11 months ago

The keymap handling here interferes with the type folio (i'm using the UK one). For instance KEY_APOSTROPHE is always mapped to the incorrect key.

Yaft should migrate to keyboard handling via https://github.com/reMarkable/epaper-qpa when the folio is attached.

https://github.com/timower/rM2-stuff/blob/97a35cb39091080229d8730d7e7e7607d05c8d33/apps/yaft/keyboard.cpp#L155

timower commented 11 months ago

https://github.com/reMarkable/epaper-qpa Not sure how that is relevant, that's for QT support right?

timower commented 11 months ago

We just need keymaps for different languages like: https://github.com/reMarkable/epaper-qpa/tree/master/map

wehlutyk commented 10 months ago

Will there be any possibility for Dvorak?

D-a-r-n-o-l-d commented 9 months ago

I'm using us layout and dash seems to be unmapped, meaning I can't pass arguments.

wehlutyk commented 9 months ago

I've been trying setting a local keymap, following https://superuser.com/a/470265 , but I can't get the keymap changed with loadkeys (and setxkbmap is for X11 I believe). Would you have any hints about what could be tried?

i-am-shodan commented 9 months ago

Take a look at my changes for UK folio https://github.com/i-am-shodan/yaft-rm2-ukfolio

timower commented 9 months ago

You can define your own keymap in this array: https://github.com/timower/rM2-stuff/blob/4174e7c70645285be47f7ab20d83e76fc8fd3835/apps/yaft/keyboard.cpp#L167

On the dev branch I've added support for a config file and custom keymaps: https://github.com/timower/rM2-stuff/commit/0722df1a9d506c5e2f804cbf539693f3488da5ac

PepikVaio commented 6 months ago

Take a look at my changes for UK folio https://github.com/i-am-shodan/yaft-rm2-ukfolio

Hi, where i find file with changes?