summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2006-06-26 07:52:34 +0200
committerDmitry Torokhov <dtor_core@ameritech.net>2006-06-26 07:52:34 +0200
commit0ae051a19092d36112b5ba60ff8b5df7a5d5d23b (patch)
tree26c56905ff7f26995e8ba1085f60c9c33e8a8483 /drivers/char
parentInput: fix misspelling of Hangeul key (diff)
downloadlinux-0ae051a19092d36112b5ba60ff8b5df7a5d5d23b.tar.xz
linux-0ae051a19092d36112b5ba60ff8b5df7a5d5d23b.zip
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')
-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;
}