folpindo / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

⌘-key shortcuts don't work in "Dvorak - Qwerty ⌘" Mac keyboard layout #920

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
On the Mac, there are multiple keyboard layouts for the Dvorak keyboard.  The 
one that I use switches back to the Qwerty layout when using the ⌘ (Command) 
key (partially for people who are used to those keyboard shortcuts, and 
partially because they're laid out well on the keyboard).  I'm sure this is low 
on your priority list, but it frustrates me whenever I try to use the Arduino 
IDE (and the Processing IDE too)

Steps to reproduce:
1. Set "Dvorak - Qwerty ⌘" keyboard layout in Mac (Under "System Preferences" 
-> "Language & Text" -> "Input Sources" Tab)
2. Try to copy/paste with ⌘-C and ⌘-V (end up showing sketch folder because 
the Qwerty K key is where the Dvorak V key is)
3. Be annoyed every time ;)

Using Arduino 1.0 on Mac OS 10.7.4.  Board is an Arduino Uno if that makes any 
difference.

Original issue reported on code.google.com by br...@semi-sentient.com on 25 May 2012 at 11:04

GoogleCodeExporter commented 9 years ago
That does sound annoying and I'd be happy to apply a patch to fix it.  
Unfortunately, I'm probably not going to have time to look into it myself.

Original comment by dmel...@gmail.com on 27 May 2012 at 5:00

GoogleCodeExporter commented 9 years ago
Looks like it's an issue with Swing and how it resolves keys in 
JMenuItem.setAccelerator().  I can not think of a graceful way to solve the 
issue, but would love to talk to someone about it.  

Found another application with a similar issue: 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=153432

Original comment by thomas.c...@gmail.com on 12 Aug 2013 at 11:58