All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] macintosh: fix fabrication of caplock key events
@ 2008-01-10 14:06 Andy Wingo
  0 siblings, 0 replies; only message in thread
From: Andy Wingo @ 2008-01-10 14:06 UTC (permalink / raw)
  To: linux-kernel, akpm

If the user has turned on the "restore_caplock_events" parameter, the
code mangles the capslock events correctly, then erroneously ignores
those events. Fix logic to allow correct fallthrough.

Signed-off-by: Andy Wingo <wingo@pobox.com>
---

diff --git a/drivers/macintosh/adbhid.c b/drivers/macintosh/adbhid.c
index 883da72..ef4c117 100644
--- a/drivers/macintosh/adbhid.c
+++ b/drivers/macintosh/adbhid.c
@@ -322,8 +322,9 @@ adbhid_input_keycode(int id, int scancode, int repeat)
 			input_sync(ahid->input);
 			input_report_key(ahid->input, KEY_CAPSLOCK, 0);
 			input_sync(ahid->input);
+			return;
 		}
-		return;
+		break;
 #ifdef CONFIG_PPC_PMAC
 	case ADB_KEY_POWER_OLD: /* Power key on PBook 3400 needs remapping */
 		switch(pmac_call_feature(PMAC_FTR_GET_MB_INFO,

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

only message in thread, other threads:[~2008-01-10 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-10 14:06 [PATCH] macintosh: fix fabrication of caplock key events Andy Wingo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.