Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93238
b: refs/heads/master
c: 0beb4f6
h: refs/heads/master
v: v3
  • Loading branch information
Karl Dahlke authored and Dmitry Torokhov committed Apr 15, 2008
1 parent cc08e57 commit 7ee00dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76d057ce5a48034c97f604a0a25a87093e072c71
refs/heads/master: 0beb4f6f294b0f2dde07fa9da9c00abd4f9c8b50
2 changes: 2 additions & 0 deletions trunk/drivers/char/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,7 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw)
}

param.shift = shift_final = (shift_state | kbd->slockstate) ^ kbd->lockstate;
param.ledstate = kbd->ledflagstate;
key_map = key_maps[shift_final];

if (atomic_notifier_call_chain(&keyboard_notifier_list, KBD_KEYCODE, &param) == NOTIFY_STOP || !key_map) {
Expand Down Expand Up @@ -1285,6 +1286,7 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw)

(*k_handler[type])(vc, keysym & 0xff, !down);

param.ledstate = kbd->ledflagstate;
atomic_notifier_call_chain(&keyboard_notifier_list, KBD_POST_KEYSYM, &param);

if (type != KT_SLOCK)
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ struct keyboard_notifier_param {
struct vc_data *vc; /* VC on which the keyboard press was done */
int down; /* Pressure of the key? */
int shift; /* Current shift mask */
int ledstate; /* Current led state */
unsigned int value; /* keycode, unicode value or keysym */
};

Expand Down

0 comments on commit 7ee00dc

Please sign in to comment.