summaryrefslogtreecommitdiff
path: root/drivers/char/keyboard.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2006-06-26 01:52:34 -0400
committerDmitry Torokhov <dtor_core@ameritech.net>2006-06-26 01:52:34 -0400
commit0ae051a19092d36112b5ba60ff8b5df7a5d5d23b (patch)
tree26c56905ff7f26995e8ba1085f60c9c33e8a8483 /drivers/char/keyboard.c
parentb9ab58dd8e771d30df110c56e785db1ae5e073df (diff)
downloadlinux-next-0ae051a19092d36112b5ba60ff8b5df7a5d5d23b.tar.gz
Input: atkbd - fix HANGEUL/HANJA keys
Make atkbd report HANGEUL/HANJA keys by default and use correct scan codes for these keys (they were swapped). Also make sure their scancodes reported as EV_MSC/MSC_SCAN events. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/char/keyboard.c')
-rw-r--r--drivers/char/keyboard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index d82368bc46d0..6cb85dcbbc83 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -1075,10 +1075,12 @@ static int emulate_raw(struct vc_data *vc, unsigned int keycode,
put_queue(vc, 0x45 | up_flag);
return 0;
case KEY_HANGEUL:
- if (!up_flag) put_queue(vc, 0xf1);
+ if (!up_flag)
+ put_queue(vc, 0xf2);
return 0;
case KEY_HANJA:
- if (!up_flag) put_queue(vc, 0xf2);
+ if (!up_flag)
+ put_queue(vc, 0xf1);
return 0;
}