Ctrl + Key Mappings Not Working as Expected with Dvorak Layout in Goland with IdeaVim

Hi Goland Team,

I'm encountering an issue with Ctrl + key mappings while using the Dvorak keyboard layout in Goland (with the IdeaVim plugin). Specifically, when I try to use mappings that involve the Ctrl key, IntelliJ seems to interpret the key according to its physical position (as in the QWERTY layout), rather than the logical key as per the Dvorak layout.

Steps to Reproduce:

  1. Set the system keyboard layout to Dvorak.
  2. Use IdeaVim to map a key combination involving Ctrl (e.g., Ctrl + h).
  3. When I press Ctrl + h (which should correspond to the Dvorak "h" key), Goland interprets the keypress according to its physical position on a QWERTY keyboard (i.e., Ctrl + j), instead of the logical Dvorak layout.

Expected Behavior:

Pressing Ctrl + h should be recognized as Ctrl + h in the Dvorak layout, regardless of the key's physical position on a QWERTY keyboard.

Actual Behavior:

Pressing Ctrl + h (Dvorak) is interpreted as Ctrl + j (QWERTY), based on the physical key location rather than the logical layout.

Additional Information:

  • In insert mode, the keys are typed correctly according to the Dvorak layout, so the issue only occurs with Ctrl combinations in normal mode.
  • I'm using the latest versions of Goland and IdeaVim.
  • The problem seems related to how Goland handles Ctrl key mappings at a lower level, bypassing the logical keyboard layout in favor of the physical key positions.
  • I use the same .ideavimrc file for IntelliJ and it working fine.

Question:

Is there any way to ensure that Goland respects the logical Dvorak layout for Ctrl + key mappings in normal mode, similar to how it works in insert mode? Or is this a known issue with a potential workaround?

Thank you for your assistance!

0

Please sign in to leave a comment.