linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* PowerBook G3 Series kbd patch
@ 1999-02-11 15:33 Benjamin Herrenschmidt
  0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 1999-02-11 15:33 UTC (permalink / raw)
  To: linuxppc-dev, Paul Mackerras


Here's a quick patch that remaps the "Fn" key of the Powerbook G3 Series
keyboard to an unused keycode (actually 0x7e). I'll post clean
vger-related patches later (when vger is back), this one is relative to
Paul's rsync tree. (Paul:You may want to include it now, I don't think it
breaks anything).
The original keycode of this key is 63, and conflicts with the buttons
emulation of Xpmac.


--- linux.orig/drivers/macintosh/mac_keyb.c	Tue Jan 26 00:18:30 1999
+++ linux.dev/drivers/macintosh/mac_keyb.c	Tue Feb  9 22:39:18 1999
@@ -322,6 +322,9 @@
 	/* on the powerbook 3400, the power key gives code 0x7e */
 	if (keycode == 0x7e)
 		keycode = 0x7f;
+	/* remap the "Fn" key of the PowerBook G3 Series to 0x7e */
+	if (keycode == 0x3f)
+		keycode = 0x7e;
 
 #ifdef CONFIG_ADBMOUSE
 	/*


-- 
           E-Mail: <mailto:bh40@calva.net>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>





[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-11 15:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-11 15:33 PowerBook G3 Series kbd patch Benjamin Herrenschmidt

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).