Right Command key like right Option key and right Option key like right Command key

446 views
Skip to first unread message

Christopher Romanowski

unread,
Jul 19, 2011, 4:57:40 AM7/19/11
to ukelel...@googlegroups.com
Hi,

I want to bind my right Command key to act as right Option key and right Option key act as right Command key.
If Ukulele can help me with this? I can`t find that option.

Regards
Chris

Sorin Paliga

unread,
Jul 19, 2011, 6:10:02 AM7/19/11
to ukelel...@googlegroups.com
Look for DoubleCommand, install it, then customize according to your wish. Lion compatible as wel.
Enjoy


Christopher Romanowski

unread,
Jul 20, 2011, 5:58:09 AM7/20/11
to ukelel...@googlegroups.com
Thanks, but the DoubleCommand can only switch both, right and left, Command key. I want to switch only right key. Is there any possibility to do this?

Sorin Paliga

unread,
Jul 20, 2011, 6:04:59 AM7/20/11
to ukelel...@googlegroups.com
I think system was not planned like that. Only Option/Alt key may have different left and right functions.

On 20.07.2011, at 12:58, Christopher Romanowski wrote:

Thanks, but the DoubleCommand can only switch both, right and left, Command key. I want to switch only right key. Is there any possibility to do this?

--
You received this message because you are subscribed to the Google Groups "Ukelele Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ukelele-users/-/uDBcjsfB2HkJ.
To post to this group, send email to ukelel...@googlegroups.com.
To unsubscribe from this group, send email to ukelele-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ukelele-users?hl=en.

Geke

unread,
Jul 20, 2011, 7:36:38 AM7/20/11
to Ukelele Users
On Jul 20, 11:58 am, Christopher Romanowski <castus...@gmail.com>
wrote:
> Thanks, but the DoubleCommand can only switch both, right and left, Command
> key. I want to switch only right key. Is there any possibility to do this?

I don't know if there are programs that can do it, but Ukelele
cannot:
Ukelele can only take a complete keystroke coming from the keyboard
and modify it.
So for example you type Cmd+A, the keyboard sends a code for that to
the computer, and the keyboard layout (made by Ukelele, e.g.) changes
that code into a character for the screen etc.

The Cmd key is not a normal key, it only modifies the output coming
from other keys. In other words: pressing the Command key is not a
complete keystroke, so it cannot be modified by Ukelele.

In principle, you can use Ukelele to create a keyboard layout with
separate left and right Cmd and Option keys, so that different tables
are used for Left Cmd+A and Right Cmd+A. Then you could change the two
result tables independently of each other, and in that way achieve
what you want. But:
1. This is a lot of work!
2. In many programs, this doesn't work anyway, because they ignore the
separate tables and look in the table for the Left Cmd key even if the
right one was pressed. I forgot the details; there is something about
it in the Ukelele tutorial and/or manual.

I'm curious to know why you want this arrangement, with swapped right
modifier keys?

Geke

unread,
Jul 20, 2011, 8:11:33 AM7/20/11
to Ukelele Users
Correction to previous post:
I just realized that it's not much work at all, because after
separating the tables, you can link the keystrokes involving the right
Cmd key to the tables for the right Option key, etc.

Still, I'd recommend reading the manual/tutorial to get the full
picture before starting on it.

John Brownie

unread,
Jul 25, 2011, 4:53:47 AM7/25/11
to ukelel...@googlegroups.com

I would strongly advise against trying to do this, as it is really
unsupported by Apple. Cocoa does not pass on information about left and
right modifier keys to applications. Carbon theoretically could, but no
currently supported Apple keyboard actually does distinguish between
left and right modifier keys.

The capability is there in Ukelele because it is there in the underlying
technology that Apple produces. If in some future version of the
operating system and/or hardware this capability is useful, then it is
nice to have. For the present, though, it is usually pointless to try
separating the left and right modifier keys.

A different possibility for the original question is KeyRemap4MacBook
(http://pqrs.org/macosx/keyremap4macbook/), which works at a different
level, similar to DoubleCommand, and may be what Christopher wants. I
have not investigated it myself, but it could be useful.

John
--
John Brownie, john_b...@sil.org or j.br...@sil.org.pg
Summer Institute of Linguistics | Mussau-Emira language, Mussau Is.
Ukarumpa, Eastern Highlands Province | New Ireland Province
Papua New Guinea | Papua New Guinea

Geke

unread,
Jul 26, 2011, 2:05:28 PM7/26/11
to Ukelele Users
Thanks John, for making the picture complete and better-founded.
Especially that link could be valuable, as this kind of questions are
coming up rather often.
Reply all
Reply to author
Forward
0 new messages