linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Paul Collins <paul@burly.ondioline.org>
Cc: Jiri Slaby <jirislaby@gmail.com>, Jiri Kosina <jkosina@suse.cz>,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] hid/apple: add module parameter to swap Command and Option keys
Date: Sat, 7 Mar 2009 11:12:08 -0800	[thread overview]
Message-ID: <20090307191159.GA3355@dtor-d630.eng.vmware.com> (raw)
In-Reply-To: <1236398835-8211-1-git-send-email-paul@burly.ondioline.org>

Hi Paul,

On Sat, Mar 07, 2009 at 05:07:14PM +1300, Paul Collins wrote:
> Apple keyboards have the Command keys (a.k.a. the Apple or "waffle" key)
> in the positions normally occupied on PC keyboards by the Alt/AltGr keys,
> and the Option or Alt keys in the position occupied by the so-called
> Windows keys.  Folks who have been using PC-type computers for too long
> generally have insurmountable muscle memory in this regard.
> 
> This patch adds a module parameter, defaulting to off, that swaps these keys.
> 
> The same effect can also be achieved by changing the console and X
> keymaps, but this approach does not scale.  For example, I don't want to
> have to learn how to reconfigure Wayland's keymaps when the future
> arrives and we all start using it, and there may be applications I don't
> know about that also read keyboard events directly.
> 

We have a mechanism to alter in-kernel "scancode" to mapping from
userspace by issuing EVIOCSKEYCODE ioctl and there are a few utilities
written, in addition to HAL using it. So the best way I think is to
simly add an optional HAL policy.

-- 
Dmitry

  parent reply	other threads:[~2009-03-07 19:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-06  5:33 [PATCH] hid/apple: add module parameter to swap the Command and Option keys Paul Collins
2009-03-06  5:41 ` Randy Dunlap
2009-03-06  5:55   ` Paul Collins
2009-03-06 22:13 ` Jiri Slaby
2009-03-07  4:07   ` [PATCH 1/2] hid/apple: add module parameter to swap " Paul Collins
2009-03-07  4:07     ` [PATCH 2/2] hid/apple: constify arrays of struct apple_key_translation and adjust users Paul Collins
2009-03-18 12:59       ` Jiri Kosina
2009-03-07 19:12     ` Dmitry Torokhov [this message]
2009-03-11 12:31     ` [PATCH 1/2] hid/apple: add module parameter to swap Command and Option keys Jiri Kosina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090307191159.GA3355@dtor-d630.eng.vmware.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=jirislaby@gmail.com \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul@burly.ondioline.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).