I use the presumably obscure Dvorak/Command-Querty keyboard layout. It uses Dvorak for standard typing, but when you hold down the command key, it switches to Querty, so I can use the key that's actually printed on the page, and preserve that precious command key muscle memory. I've had mixed success using the command keys with TextMate, though. For instance, I frequently change the indentation of blocks of code, using command-[ and ]. When I use DQ, I tend to get some sort of commenting. If I switch back to regular querty, I get the results I expect. Is there any way this can be improved?
I also use this same layout and have had similar problems.
On Aug 30, 2005, at 1:57 PM, Andre Behrens wrote:
I use the presumably obscure Dvorak/Command-Querty keyboard layout. It uses Dvorak for standard typing, but when you hold down the command key, it switches to Querty, so I can use the key that's actually printed on the page, and preserve that precious command key muscle memory. I've had mixed success using the command keys with TextMate, though. For instance, I frequently change the indentation of blocks of code, using command-[ and ]. When I use DQ, I tend to get some sort of commenting. If I switch back to regular querty, I get the results I expect. Is there any way this can be improved? ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 30/08/2005, at 19.57, Andre Behrens wrote:
[...] When I use DQ, I tend to get some sort of commenting. If I switch back to regular querty, I get the results I expect.
I wasn't aware of the DQ hybrid until recently. Unfortunately I have no clue about how I am supposed to handle the key equivalents for this to work.
A key event is available as the character representation with and without the modifier keys. I use it without the modifier keys, which is wrong for command keys with DQ, since then I get the Dvorak key. Unfortunately, if I use it with the modifier keys, it would mean that a key like option-R would really be ® (on the US keymap), which is also wrong.
I haven't seen any way to do things like, ask for characters without modifiers except the command key, which would seem to be the proper way to handle this.
I don't suppose anyone on this list knows how about this?
I'm always open to testing ideas out.
On Aug 30, 2005, at 3:24 PM, Allan Odgaard wrote:
On 30/08/2005, at 19.57, Andre Behrens wrote:
[...] When I use DQ, I tend to get some sort of commenting. If I switch back to regular querty, I get the results I expect.
I wasn't aware of the DQ hybrid until recently. Unfortunately I have no clue about how I am supposed to handle the key equivalents for this to work.
A key event is available as the character representation with and without the modifier keys. I use it without the modifier keys, which is wrong for command keys with DQ, since then I get the Dvorak key. Unfortunately, if I use it with the modifier keys, it would mean that a key like option-R would really be ® (on the US keymap), which is also wrong.
I haven't seen any way to do things like, ask for characters without modifiers except the command key, which would seem to be the proper way to handle this.
I don't suppose anyone on this list knows how about this?
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Tue, Aug 30, at 2:24 PM, Allan Odgaard wrote:
I haven't seen any way to do things like, ask for characters without modifiers except the command key, which would seem to be the proper way to handle this.
I don't suppose anyone on this list knows how about this?
It wouldn't be as easy as the '- (NSString *) charactersIgnoringModifiers' method in NSEvent?
Gerd
On Aug 30, 2005, at 7:19 PM, Gerd Knops wrote:
On Tue, Aug 30, at 2:24 PM, Allan Odgaard wrote:
I haven't seen any way to do things like, ask for characters without modifiers except the command key, which would seem to be the proper way to handle this.
I don't suppose anyone on this list knows how about this?
I can't say that I fully understand the mechanism by which Dvorak- Qwerty is supposed to work, but TM isn't alone in having problems with it:
http://www.cocoabuilder.com/archive/message/cocoa/2004/5/3/106156 http://www.macosx.com/forums/showthread.php?t=222950
It wouldn't be as easy as the '- (NSString *) charactersIgnoringModifiers' method in NSEvent?
If I understand correctly, Allan's already using it. What he needs is -[NSEvent charactersIgnoringModifiers:(int)modifiersToIgnoreMask]. Also, an obvious solution such as:
if [event modifierFlags] & NSCommandKeyMask [event characters] else [event charactersIgnoringModifiers]
... may not work for TM's purposes because of the other translations performed inside charactersIgnoringModifiers.
Chris
On 30/08/2005, at 21.49, Alec B. Beardsley wrote:
I'm always open to testing ideas out.
Revision 421 [1] _should_ support the hybrid as long as there are no modifiers in addition to the command modifier.
As noted in the release notes, I don't see any way to handle this correct from a Cocoa application (without involving some Carbon event handling, which I have no experience dealing with).