frang75 / nappgui_src

SDK for building cross-platform desktop apps in ANSI-C
https://www.nappgui.com
MIT License
442 stars 43 forks source link

Key names and keyboard #92

Open SamSandq opened 4 months ago

SamSandq commented 4 months ago

I am using keys a lot, match them with the symbolic names, like

ekKEY_QUEST, ekMKEY_COMMAND

and so forth.

The problem I had is that the key names (like ekKEY_QUEST) are based on the Spanish keyboard, which does not match the one I am using (Swedish/Finnish).

What I wanted was to implement zooming (on a photo) with ekKEY_PLUS, ekMKEY_COMMAND but when checking the keyboard layout discovered that the positions differ. I found the ekKEY_PLUS key on my keyboard's '¨' (two dots, like used in Spanish ü ).

This is more of a documentation issue, and perhaps should be mentioned in the docs.