Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ 14 keyboard shortcuts are QWERTY though keyboard is DVORAK

Tags:

I'm

  • running IntelliJ 14
  • using Mac OS X layout
  • running on OS X (Yosemite)

IntelliJ is using DVORAK in general but not for keyboard shortcuts. keyboard shortcuts are in QWERTY. As if they were scancode based instead of the key value after mapping.

Ideas?

edit 1 @gabriel hard to tell but here are some examples... note: m, a and 0-9 are same on DVORAK and QWERTY

cmd+/     'comment line' flashes code menu and sometimes moves to a brace (/ == {) cmd+b      works, goes to definition  (b == n) cmd+opt+l 'reformat' flashes code menu  (l == p) 
like image 860
John Dhom Avatar asked May 28 '15 19:05

John Dhom


People also ask

What is Dvorak Qwerty command?

Dvorak - Left-Handed: The most commonly used keys are under your left hand. Dvorak - QWERTY ⌘: Temporarily changes the layout to QWERTY when you press and hold the Command key.

What is Ctrl Shift O in IntelliJ?

In Eclipse, you press CTRL + SHIFT + O “Organize Imports” to import packages automatically. For IntelliJ IDEA, if you press CTRL + ALT + O “Optimize Imports”, it just removes some unused imports, never imports any package.

What does Ctrl Shift F do in IntelliJ?

In past IntelliJ versions, ctrl+shift+f would search the entire project (no matter whether you had at some point used "find in path").


1 Answers

It turns out this is a problem in Java that has existed for some years, and is still present in Java 9. See the bug report here: https://bugs.openjdk.java.net/browse/JDK-8022079

JetBrains has been aware of the problem for some years, but is waiting for Oracle to fix it. See these JetBrains bug reports: https://youtrack.jetbrains.com/issue/IDEABKL-6493 and https://youtrack.jetbrains.com/issue/IDEA-63779

In those reports you'll find a work-around using a free tool called Karabiner. I have just verified that it works for IntelliJ. It will probably also work for other Java-based tools.

For OSX earlier than Sierra The work-around is:

  • Download and install Karabiner from https://pqrs.org/osx/karabiner/
  • In the OSX System Preferences, set your keyboard to the default "U.S. International" PC. If you don't often type diacritics and other international characters, it's easier to just set the keyboard to "U.S" instead.
  • In the Karabiner settings, type "dvorak" in the search box, then scroll down to the section For U.S. Input Source and check Use Dvorak Keyboard Layout (QWERTY to Dvorak)

From macOS Sierra onwards, as reported by user MithrilTuxedo in the comments, the procedure is different. You have to use Karabiner Elements (the new Karabiner core) with a configuration file. I have outlined the procedure at https://cpbotha.net/2016/12/16/dvorak-remapping-with-karabiner-elements-on-macos-sierra-works/ and summarise it here briefly:

  • Download and install Karabiner Elements.
  • Copy qwerty_to_dvorak.json from the examples and install it as the new karabiner.json configuration file.
  • If Karabiner Elements is running, it'll pick up the new file.

This bug will affect most Java-based tools such as those by JetBrains (IntelliJ, PyCharm, WebStorm, AppCode) and probably also Netbeans. The work-around summarised above should alleviate the problem in all cases.

like image 161
Charl Botha Avatar answered Oct 26 '22 08:10

Charl Botha