Skip to contentSkip to conversation

macintosh: fix fabrication of caplock key events

PATCH New Andy Wingo 1 participant 1 message Jan 10, 2008 Linux for power macintosh

lore
Share & tools
lore

Andy Wingo

author
#0 lore raw

PATCH 1/1 macintosh: fix fabrication of caplock key events

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.

---

drivers/macintosh/adbhid.c +2 -1
index 883da72..ef4c117 100644
@@ -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,