gddg / xee

Automatically exported from code.google.com/p/xee
2 stars 1 forks source link

Keyboard commands are mapped incorrectly with Dvorak-Qwerty Commands layout #339

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable the Dvorak - Qwerty Command keyboard layout in International
2. Switch to that keyboard layout in Xee3
3. Issue a command (such as cmd-S) using the location of the letter in the 
QWERTY layout (two to the right of Capslock)

What is the expected output? What do you see instead?
The command is incorrectly mapped using the letter in that position from Dvorak 
(in this example, the letter O in dvorak is where S appears in Qwerty), when it 
should be using the letter that is in that position in Qwerty. This means that 
when trying to do Cmd-S, you actually open the Open... dialogue. Most other Mac 
applications do this remapping correctly.

What version of the product are you using? On what operating system?
Version 3.0 RC 2 (16)
Mac OSX 10.8.3 (Build 12D78)

Please provide any additional information below.
The Dvorak-Qwerty commands keyboard layout remaps the keyboard on the fly so 
that keyboard commands normally act as if you have a Qwerty layout, but allow 
typing with the Dvorak layout. I suspect this causes an issue when you check 
keyboard commands by asking what character is being pressed, rather than asking 
what keyboard position is being pressed. I have never used the APIs myself 
though.

Original issue reported on code.google.com by peterjel...@gmail.com on 19 May 2013 at 4:27

GoogleCodeExporter commented 9 years ago
When trying to do Cmd-S using the location of S in the Dvorak layout (on the ; 
key), nothing happens.
Cmd-R works as expected and rotates the image, despite the character mapped to 
the R key being P in dvorak.
Cmd-O also rotates the image, because the O key is mapped to R in dvorak.
Maybe the way keyboard commands are being detected doesn't use a consistent 
method of mapping between all of the commands?

Original comment by peterjel...@gmail.com on 19 May 2013 at 4:32

GoogleCodeExporter commented 9 years ago
For reference, this is the Dvorak Simplified Keyboard layout: 
http://en.wikipedia.org/wiki/Dvorak_simplified_keyboard

Original comment by peterjel...@gmail.com on 19 May 2013 at 4:33

GoogleCodeExporter commented 9 years ago
The more exact method to enable this keybard layout:
System Preferences > Language & Text > Input Sources > Check "Dvorak - Qwerty 
⌘"
You may also want to check "Keyboard & Character Viewer" so that you can view 
the onscreen keyboard when debugging this, as the Dvorak layout can be very 
confusing to those that don't use it.
If you click the radio button "Use the same one in all documents", you won't 
have to deal with the per-app keyboard layout settings.

Original comment by peterjel...@gmail.com on 19 May 2013 at 4:42

GoogleCodeExporter commented 9 years ago
I think I have this fixed now, but if there are any further issues from the 
next version on, report them.

Original comment by paracel...@gmail.com on 23 Jul 2013 at 9:30