From: John A. T. <ja...@ja...> - 2009-11-28 19:22:55
|
John David Galt wrote: > I suggest ctrl-F find, ctrl-G find-next, Alt-G find-prev, which is as > close to the Mac bindings as you're going to achieve on a PC. > (Ctrl-Shift-x, where x is a letter, may not be distinguishable from > Ctrl-x on a PC, especially if the user is careless about the Caps Lock > setting as most people are.) > Caps lock has no effect on whether shift is detected -- the Swing key events happen at actual keypress/release level, not the interpreted result of those key presses. So, you set an action listener on the key G pressed with a particular set of modifiers, in this case either Ctrl/Alt (Alt if on Mac, which maps to Cmd) and Shift to get find-previous. That will happen regardless of whether Caps lock is on or off. -- John A. Tamplin ja...@ja... 770/436-5387 HOME 4116 Manson Ave Smyrna, GA 30082-3723 |