[GrafX2] #158: Keyboard layout independence (Linux)

7 views
Skip to first unread message

GrafX2

unread,
Mar 12, 2020, 1:07:52 AM3/12/20
to gra...@googlegroups.com
#158: Keyboard layout independence (Linux)
--------------------------+------------------------
Reporter: ssaammp@… | Owner: pulkomandy
Type: enhancement | Status: new
Priority: minor | Milestone: 2.8
Component: GrafX2 | Version: 2.6
Keywords: keyboard, ui |
--------------------------+------------------------
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.

--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/158>
GrafX2 <http://pulkomandy.tk/projects/GrafX2>
The ultimate 256-color painting program

GrafX2

unread,
Mar 12, 2020, 6:26:34 PM3/12/20
to gra...@googlegroups.com
#158: Keyboard layout independence (Linux)
--------------------------+--------------------------
Reporter: ssaammp@… | Owner: pulkomandy
Type: enhancement | Status: new
Priority: minor | Milestone: 2.8
Component: GrafX2 | Version: 2.6
Resolution: | Keywords: keyboard, ui
--------------------------+--------------------------

Comment (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 ?

--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/158#comment:1>

GrafX2

unread,
Mar 12, 2020, 6:31:00 PM3/12/20
to gra...@googlegroups.com
#158: Keyboard layout independence (Linux)
--------------------------+--------------------------
Reporter: ssaammp@… | Owner: pulkomandy
Type: enhancement | Status: new
Priority: minor | Milestone: 2.8
Component: GrafX2 | Version: 2.6
Resolution: | Keywords: keyboard, ui
--------------------------+--------------------------

Comment (by Thomas Bernard):

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

--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/158#comment:2>

GrafX2

unread,
Mar 12, 2020, 11:14:55 PM3/12/20
to gra...@googlegroups.com
#158: Keyboard layout independence (Linux)
--------------------------+--------------------------
Reporter: ssaammp@… | Owner: pulkomandy
Type: enhancement | Status: new
Priority: minor | Milestone: 2.8
Component: GrafX2 | Version: 2.6
Resolution: | Keywords: keyboard, ui
--------------------------+--------------------------

Comment (by ssaammp@…):

Replying to [comment:1 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.

--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/158#comment:3>

GrafX2

unread,
Mar 13, 2020, 3:33:20 AM3/13/20
to gra...@googlegroups.com
#158: Keyboard layout independence (Linux)
--------------------------+--------------------------
Reporter: ssaammp@… | Owner: pulkomandy
Type: enhancement | Status: closed
Priority: minor | Milestone: 2.8
Component: GrafX2 | Version: 2.6
Resolution: invalid | Keywords: keyboard, ui
--------------------------+--------------------------
Changes (by Thomas Bernard):

* status: new => closed
* resolution: => invalid


Comment:

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

--
Ticket URL: <http://pulkomandy.tk/projects/GrafX2/ticket/158#comment:4>
Reply all
Reply to author
Forward
0 new messages