Opened 5 months ago

Closed 5 months ago

#158 closed enhancement (invalid)

Keyboard layout independence (Linux)

Reported by: ssaammp@… Owned by: pulkomandy
Priority: minor Milestone: 2.8
Component: GrafX2 Version: 2.6
Keywords: keyboard, ui Cc:

Description

I'm a Dvorak user on Linux, and my keys get scrambled when using Grafx2, was wondering if there's a way around it. Switching to qwerty doesn't seem to solve the issue.

One way is for me to remap the keybinds to dvorak equivalents, but it looks like I have to do that somewhat manually (argh! where is my textfile configuration?).

Should mapping to physical keys instead of letters be the default behavior, should it be a toggle? Or just forget it for now?

I know that SDL2 defines SDL_SCANCODE_SOMEKEY, which can be compared against keysym.scancode to achieve this. In SDL1, I'm not sure if the same convenience is possible. I could make a patch, but the need for SDL1 compat makes it a hassle.

Change History (4)

comment:1 Changed 5 months ago by Thomas Bernard

what do you mean your keys get scrambled ?
it is when you type something in a text field, or for keyboard shortcut ?

Also are your experiencing the same issue with SDL1.2 and with SDL 2 ?

comment:2 Changed 5 months ago by Thomas Bernard

GrafX2 is using the keycode https://wiki.libsdl.org/SDL_Keycode
experience may vary depending on which SDL version you uses.

comment:3 in reply to:  1 Changed 5 months ago by ssaammp@…

Replying to Thomas Bernard:

what do you mean your keys get scrambled ?
it is when you type something in a text field, or for keyboard shortcut ?

Also are your experiencing the same issue with SDL1.2 and with SDL 2 ?

My issue is that the D key for draw is mapped to dvorak D, which is where H is physically, etc. The program is still usable and relatively ergonomic, but the familiarity is lost.

comment:4 Changed 5 months ago by Thomas Bernard

Resolution: invalid
Status: newclosed

It is how it is meant to work : 'D' is the key according to your active keymap, so indeed in dvorak 'D' is placed where the 'H' is on qwerty/qwertz/azerty

if you are using a keymap that doesn't match your physical keyboard key labels, well, that's your problem.

https://en.wikipedia.org/wiki/Dvorak_keyboard_layout#/media/File:KB_United_States_Dvorak.svg

Note: See TracTickets for help on using tickets.