input: usb keyboard: fix BACKSPACE
PATCH 1/2 input: usb keyboard: fix BACKSPACE
--- drivers/input/keymap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/input/keymap.c +2 -2
@@ -19,7 +19,7 @@ uint8_t keycode_bb_keys[NR_KEYS] = { [KEY_0] = '0', [KEY_MINUS] = '-', [KEY_EQUAL] = '=', - [KEY_BACKSPACE] = 0xff, + [KEY_BACKSPACE] = 8, [KEY_TAB] = '\t', [KEY_Q] = 'q', [KEY_W] = 'w',
@@ -101,7 +101,7 @@ uint8_t keycode_bb_shift_keys[NR_KEYS] = { [KEY_0] = ')', [KEY_MINUS] = '_', [KEY_EQUAL] = '+', - [KEY_BACKSPACE] = 0xff, + [KEY_BACKSPACE] = 8, [KEY_TAB] = '\t', [KEY_Q] = 'Q', [KEY_W] = 'W',
Signature · 7 lines
2.1.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/2 input: usb keyboard: fix CTRL+C
--- drivers/input/input.c | 4 ++- drivers/input/keymap.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++++ include/input/keyboard.h | 1 + 3 files changed, 86 insertions(+), 1 deletion(-)
drivers/input/input.c +3 -1
@@ -164,7 +164,9 @@ static void input_console_notify(struct input_notifier *in,if (ic->modstate[4 ] || ic->modstate[5 ]) modstate |=1 <<2 ; -if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) + ascii = keycode_bb_ctrl_keys[ev->code]; +else if (modstate & (1 <<0 )) ascii = keycode_bb_shift_keys[ev->code];else ascii = keycode_bb_keys[ev->code];
drivers/input/keymap.c +82 -0
85 lines not on this page · raw message
include/input/keyboard.h +1 -0
@@ -7,5 +7,6 @@extern uint8_t keycode_bb_keys[NR_KEYS ];extern uint8_t keycode_bb_shift_keys[NR_KEYS ]; +extern uint8_t keycode_bb_ctrl_keys[NR_KEYS ];#endif
Signature · 7 lines
2.1.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/2] input: usb keyboard: fix CTRL+C
Quoted 67 lines · Peter Mamonov
Signed-off-by Peter Mamonov <[email protected]>--- drivers/input/input.c | 4 ++- drivers/input/keymap.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++++ include/input/keyboard.h | 1 + 3 files changed, 86 insertions(+), 1 deletion(-)drivers/input/input.c +3
-1@@ -164,7 +164,9 @@ static void input_console_notify(struct input_notifier *in,if (ic->modstate[4 ] || ic->modstate[5 ]) modstate |=1 <<2 ; -if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) + ascii = keycode_bb_ctrl_keys[ev->code]; +else if (modstate & (1 <<0 )) ascii = keycode_bb_shift_keys[ev->code];else ascii = keycode_bb_keys[ev->code];drivers/input/keymap.c +37
-0@@ -167,3 +167,85 @@ uint8_t keycode_bb_shift_keys[NR_KEYS] = { [KEY_KPEQUAL] = '=', [KEY_KPCOMMA] = ',', }; + +uint8_t keycode_bb_ctrl_keys[NR_KEYS ] = { + [KEY_RESERVED ] =0xff , + [KEY_ESC ] =0x1b , + [KEY_1 ] ='1' , + [KEY_2 ] ='2' , + [KEY_3 ] ='3' , + [KEY_4 ] ='4' , + [KEY_5 ] ='5' , + [KEY_6 ] ='6' , + [KEY_7 ] ='7' , + [KEY_8 ] ='8' , + [KEY_9 ] ='9' , + [KEY_0 ] ='0' , + [KEY_MINUS ] ='-' , + [KEY_EQUAL ] ='=' , + [KEY_BACKSPACE ] =8 , + [KEY_TAB ] ='\t' , + [KEY_Q ] ='q' , + [KEY_W ] ='w' , + [KEY_E ] ='e' , + [KEY_R ] ='r' , + [KEY_T ] ='t' , + [KEY_Y ] ='y' , + [KEY_U ] ='u' , + [KEY_I ] ='i' , + [KEY_O ] ='o' , + [KEY_P ] ='p' , + [KEY_LEFTBRACE ] ='[' , + [KEY_RIGHTBRACE ] =']' , + [KEY_ENTER ] ='\n' , + [KEY_A ] ='a' , + [KEY_S ] ='s' , + [KEY_D ] ='d' , + [KEY_F ] ='f' , + [KEY_G ] ='g' , + [KEY_H ] ='h' ,
drivers/input/keymap.c uint8_t keycode_bb_shift_keys[NR_KEYS] = { · line 216
Quoted 10 lines
drivers/input/keymap.c +10
-0+ [KEY_J] = 'j', + [KEY_K] = 'k', + [KEY_L] = 'l', + [KEY_SEMICOLON] = ';', + [KEY_APOSTROPHE] = '`', + [KEY_GRAVE] = '^', + [KEY_BACKSLASH] = '\\', + [KEY_Z] = 'z', + [KEY_X] = 'x', + [KEY_C] = 3,
Reading readkey.h it loks like the following definition would be more descriptive:
#define [KEY_C] = CTL_CH('c'),
The result is in the end the same.
This patch alrady use other definitions from the same file (BB_*). So CTL_CH() is availabale.
Sam
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 4 lines · Peter Mamonov
Signed-off-by Peter Mamonov <[email protected]>--- drivers/input/keymap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Applied this one with '\b' instead of 8.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/2] input: usb keyboard: fix CTRL+C
In reply to Peter MamonovQuoted 27 lines · Peter Mamonov
Signed-off-by Peter Mamonov <[email protected]>--- drivers/input/input.c | 4 ++- drivers/input/keymap.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++++ include/input/keyboard.h | 1 + 3 files changed, 86 insertions(+), 1 deletion(-)drivers/input/input.c +3
-1@@ -164,7 +164,9 @@ static void input_console_notify(struct input_notifier *in,if (ic->modstate[4 ] || ic->modstate[5 ]) modstate |=1 <<2 ; -if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) + ascii = keycode_bb_ctrl_keys[ev->code]; +else if (modstate & (1 <<0 )) ascii = keycode_bb_shift_keys[ev->code];else ascii = keycode_bb_keys[ev->code];drivers/input/keymap.c +0
-0
drivers/input/keymap.c uint8_t keycode_bb_shift_keys[NR_KEYS] = { · line 175
Quoted 9 lines
drivers/input/keymap.c +6
-0@@ -167,3 +167,85 @@ uint8_t keycode_bb_shift_keys[NR_KEYS] = { [KEY_KPEQUAL] = '=', [KEY_KPCOMMA] = ',', }; + +uint8_t keycode_bb_ctrl_keys[NR_KEYS ] = { + [KEY_RESERVED ] =0xff , + [KEY_ESC ] =0x1b , + [KEY_1 ] ='1' , + [KEY_2 ] ='2' ,
Do we really want to copy the keymap without modifier here thus effectively ignoring the ctrl key? I would assume the ctrl keymap is almost empty with only ctrl-c supported. Then we would add support for whatever ctrl char we might need aswell.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 1/1 input: usb keyboard: fix CTRL+C
In reply to Peter Mamonov--- drivers/input/input.c | 4 +++- drivers/input/keymap.c | 4 ++++ include/input/keyboard.h | 1 + 3 files changed, 8 insertions(+), 1 deletion(-)
drivers/input/input.c +3 -1
@@ -164,7 +164,9 @@ static void input_console_notify(struct input_notifier *in,if (ic->modstate[4 ] || ic->modstate[5 ]) modstate |=1 <<2 ; -if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) + ascii = keycode_bb_ctrl_keys[ev->code]; +else if (modstate & (1 <<0 )) ascii = keycode_bb_shift_keys[ev->code];else ascii = keycode_bb_keys[ev->code];
drivers/input/keymap.c +4 -0
@@ -167,3 +167,7 @@ uint8_t keycode_bb_shift_keys[NR_KEYS] = { [KEY_KPEQUAL] = '=', [KEY_KPCOMMA] = ',', }; + +uint8_t keycode_bb_ctrl_keys[NR_KEYS ] = { + [KEY_C ] =CTL_CH ('c' ), +};
include/input/keyboard.h +1 -0
@@ -7,5 +7,6 @@extern uint8_t keycode_bb_keys[NR_KEYS ];extern uint8_t keycode_bb_shift_keys[NR_KEYS ]; +extern uint8_t keycode_bb_ctrl_keys[NR_KEYS ];#endif
Signature · 7 lines
2.1.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH v2] input: usb keyboard: fix CTRL+C
Quoted 28 lines · On Wed, 24 Feb 2016 13:48:45 +0300 Peter Mamonov <[email protected]> wrote:
Signed-off-by Peter Mamonov <[email protected]>Signed-off-by Sam Ravnborg <[email protected]>--- drivers/input/input.c | 4 +++- drivers/input/keymap.c | 4 ++++ include/input/keyboard.h | 1 + 3 files changed, 8 insertions(+), 1 deletion(-)drivers/input/input.c +3
-1@@ -164,7 +164,9 @@ static void input_console_notify(struct input_notifier *in,if (ic->modstate[4 ] || ic->modstate[5 ]) modstate |=1 <<2 ; -if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) + ascii = keycode_bb_ctrl_keys[ev->code]; +else if (modstate & (1 <<0 )) ascii = keycode_bb_shift_keys[ev->code];else ascii = keycode_bb_keys[ev->code];drivers/input/keymap.c +0
-0
drivers/input/keymap.c uint8_t keycode_bb_shift_keys[NR_KEYS] = { · line 173
Quoted 7 lines
drivers/input/keymap.c +4
-0@@ -167,3 +167,7 @@ uint8_t keycode_bb_shift_keys[NR_KEYS] = { [KEY_KPEQUAL] = '=', [KEY_KPCOMMA] = ',', }; + +uint8_t keycode_bb_ctrl_keys[NR_KEYS ] = { + [KEY_C ] =CTL_CH ('c' ), +};
It looks like we still have empty array with NR_KEYS bytes in it.
Can we just drop it and satisfy with short "special case" C-code for control modifier handling?
Quoted 19 lines
include/input/keyboard.h +1
-0@@ -7,5 +7,6 @@extern uint8_t keycode_bb_keys[NR_KEYS ];extern uint8_t keycode_bb_shift_keys[NR_KEYS ]; +extern uint8_t keycode_bb_ctrl_keys[NR_KEYS ];#endif Signature · 7 lines
2.1.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 8 lines
-- Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH v2] input: usb keyboard: fix CTRL+C
Quoted 42 lines · On Wed, 24 Feb 2016 17:21:48 +0300 Antony Pavlov <[email protected]>…
Quoted 28 lines · On Wed, 24 Feb 2016 13:48:45 +0300 Peter Mamonov <[email protected]> wrote:
Signed-off-by Peter Mamonov <[email protected]>Signed-off-by Sam Ravnborg <[email protected]>--- drivers/input/input.c | 4 +++- drivers/input/keymap.c | 4 ++++ include/input/keyboard.h | 1 + 3 files changed, 8 insertions(+), 1 deletion(-)drivers/input/input.c +3
-1@@ -164,7 +164,9 @@ static void input_console_notify(struct input_notifier *in, if (ic->modstate[4] || ic->modstate[5]) modstate |= 1 << 2; -if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) + ascii = keycode_bb_ctrl_keys[ev->code]; +else if (modstate & (1 <<0 )) ascii = keycode_bb_shift_keys[ev->code];else ascii = keycode_bb_keys[ev->code];drivers/input/keymap.c +0
-0drivers/input/keymap.c uint8_t keycode_bb_shift_keys[NR_KEYS] = { · line 173
Quoted 7 lines
drivers/input/keymap.c +4
-0@@ -167,3 +167,7 @@ uint8_t keycode_bb_shift_keys[NR_KEYS] = { [KEY_KPEQUAL] = '=', [KEY_KPCOMMA] = ',', }; + +uint8_t keycode_bb_ctrl_keys[NR_KEYS ] = { + [KEY_C ] =CTL_CH ('c' ), +};It looks like we still have empty array with
NR_KEYSbytes in it.
Quoted 2 lines
Can we just drop it and satisfy with short "special case" C-code for control modifier handling?
Probably I've misunderstood Sasha.
Sasha, did you mean to eliminate the CTRL-keymap completely?
Quoted 17 lines
Quoted 17 lines
include/input/keyboard.h +1
-0@@ -7,5 +7,6 @@extern uint8_t keycode_bb_keys[NR_KEYS ];extern uint8_t keycode_bb_shift_keys[NR_KEYS ]; +extern uint8_t keycode_bb_ctrl_keys[NR_KEYS ];#endif Signature · 1 line
2.1.4
Quoted 6 lines
Quoted 4 lines
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH v2] input: usb keyboard: fix CTRL+C
Quoted 45 lines · Peter Mamonov
Quoted 42 lines · On Wed, 24 Feb 2016 17:21:48 +0300 Antony Pavlov <[email protected]>…
Quoted 28 lines · On Wed, 24 Feb 2016 13:48:45 +0300 Peter Mamonov <[email protected]> wrote:
Signed-off-by Peter Mamonov <[email protected]>Signed-off-by Sam Ravnborg <[email protected]>--- drivers/input/input.c | 4 +++- drivers/input/keymap.c | 4 ++++ include/input/keyboard.h | 1 + 3 files changed, 8 insertions(+), 1 deletion(-)drivers/input/input.c +3
-1@@ -164,7 +164,9 @@ static void input_console_notify(struct input_notifier *in, if (ic->modstate[4] || ic->modstate[5]) modstate |= 1 << 2; -if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) + ascii = keycode_bb_ctrl_keys[ev->code]; +else if (modstate & (1 <<0 )) ascii = keycode_bb_shift_keys[ev->code];else ascii = keycode_bb_keys[ev->code];drivers/input/keymap.c +0
-0drivers/input/keymap.c uint8_t keycode_bb_shift_keys[NR_KEYS] = { · line 173
Quoted 7 lines
drivers/input/keymap.c +4
-0@@ -167,3 +167,7 @@ uint8_t keycode_bb_shift_keys[NR_KEYS] = { [KEY_KPEQUAL] = '=', [KEY_KPCOMMA] = ',', }; + +uint8_t keycode_bb_ctrl_keys[NR_KEYS ] = { + [KEY_C ] =CTL_CH ('c' ), +};It looks like we still have empty array with
NR_KEYSbytes in it.
Quoted 6 lines
Quoted 2 lines
Can we just drop it and satisfy with short "special case" C-code for control modifier handling?
Probably I've misunderstood Sasha.
Sasha, did you mean to eliminate the CTRL-keymap completely?
No, I didn't, although that would be an option aswell. It would safe us a few more bytes in the binary. The question is, how many more keys are in the CTRL map that are interesting for us? Are there more than CTRL-C? If yes, then it's probably better to keep the map. If not, a special CTRL-C case in code might be the better option.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH v2] input: usb keyboard: fix CTRL+C
Quoted 4 lines · Sascha Hauer
Quoted 4 lines
Quoted 4 lines
drivers/input/input.c static void input_console_notify(struct input_notifier *in, · line 168
Quoted 4 lines
drivers/input/input.c +2
-1-if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) + ascii = keycode_bb_ctrl_keys[ev->code];
ascii = keycode_bb_keys[ev->code];
ascii = ascii >= 'a' ? CTL_CH(ascii): 0;Quoted 7 lines
Quoted 1 line
Sasha, did you mean to eliminate the CTRL-keymap completely?
No, I didn't, although that would be an option aswell. It would safe us a few more bytes in the binary. The question is, how many more keys are in the CTRL map that are interesting for us? Are there more than CTRL-C? If yes, then it's probably better to keep the map. If not, a special CTRL-C case in code might be the better option.
Would the above, or a slight modification, be ok? It gets almost all the controls keys one could care about.
Ignoring control for all keys other than c doesn't make sense to me. Does anything else do that?
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH v2] input: usb keyboard: fix CTRL+C
Quoted 11 lines · Trent Piepho
Quoted 4 lines · Sascha Hauer
Quoted 4 lines
Quoted 4 lines
drivers/input/input.c static void input_console_notify(struct input_notifier *in, · line 168
Quoted 4 lines
drivers/input/input.c +2
-1-if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) + ascii = keycode_bb_ctrl_keys[ev->code];ascii = keycode_bb_keys[ev->code]; ascii = ascii >= 'a' ? CTL_CH(ascii): 0;Quoted 2 lines
Quoted 1 line
Sasha, did you mean to eliminate the CTRL-keymap completely?
Quoted 8 lines
Quoted 5 lines
No, I didn't, although that would be an option aswell. It would safe us a few more bytes in the binary. The question is, how many more keys are in the CTRL map that are interesting for us? Are there more than CTRL-C? If yes, then it's probably better to keep the map. If not, a special CTRL-C case in code might be the better option.
Would the above, or a slight modification, be ok? It gets almost all the controls keys one could care about.
Yes, this looks good.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v3 1/1 input: usb keyboard: fix CTRL+ combinations
In reply to Peter Mamonov--- drivers/input/input.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/input/input.c +5 -1
@@ -18,6 +18,7 @@#include <linux/bitmap.h> #include <input/keyboard.h> #include <dt-bindings/input/linux-event-codes.h> +#include <readkey.h> static LIST_HEAD (input_consumers);
@@ -164,7 +165,10 @@ static void input_console_notify(struct input_notifier *in,if (ic->modstate[4 ] || ic->modstate[5 ]) modstate |=1 <<2 ; -if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) { + ascii = keycode_bb_keys[ev->code]; + ascii = ascii >='a' ?CTL_CH (ascii) :0 ; + }else if (modstate & (1 <<0 )) ascii = keycode_bb_shift_keys[ev->code];else ascii = keycode_bb_keys[ev->code];
Signature · 7 lines
2.1.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH v2] input: usb keyboard: fix CTRL+C
In reply to Sascha HauerQuoted 49 lines · On Wed, 24 Feb 2016 19:12:27 +0100 Sascha Hauer <[email protected]> wrote:
Quoted 48 lines · Peter Mamonov
Quoted 44 lines · On Wed, 24 Feb 2016 17:21:48 +0300 Antony Pavlov <[email protected]>…
Quoted 28 lines · On Wed, 24 Feb 2016 13:48:45 +0300 Peter Mamonov <[email protected]> wrote:
Signed-off-by Peter Mamonov <[email protected]>Signed-off-by Sam Ravnborg <[email protected]>--- drivers/input/input.c | 4 +++- drivers/input/keymap.c | 4 ++++ include/input/keyboard.h | 1 + 3 files changed, 8 insertions(+), 1 deletion(-)drivers/input/input.c +3
-1@@ -164,7 +164,9 @@ static void input_console_notify(struct input_notifier *in, if (ic->modstate[4] || ic->modstate[5]) modstate |= 1 << 2; -if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) + ascii = keycode_bb_ctrl_keys[ev->code]; +else if (modstate & (1 <<0 )) ascii = keycode_bb_shift_keys[ev->code];else ascii = keycode_bb_keys[ev->code];drivers/input/keymap.c +0
-0drivers/input/keymap.c uint8_t keycode_bb_shift_keys[NR_KEYS] = { · line 173
Quoted 7 lines
drivers/input/keymap.c +4
-0@@ -167,3 +167,7 @@ uint8_t keycode_bb_shift_keys[NR_KEYS] = { [KEY_KPEQUAL] = '=', [KEY_KPCOMMA] = ',', }; + +uint8_t keycode_bb_ctrl_keys[NR_KEYS ] = { + [KEY_C ] =CTL_CH ('c' ), +};It looks like we still have empty array with
NR_KEYSbytes in it.Can we just drop it and satisfy with short "special case" C-code for control modifier handling?
Quoted 8 lines
Quoted 3 lines
Probably I've misunderstood Sasha.
Sasha, did you mean to eliminate the CTRL-keymap completely?
No, I didn't, although that would be an option aswell. It would safe us a few more bytes in the binary. The question is, how many more keys are in the CTRL map that are interesting for us? Are there more than CTRL-C?
The CTRL+D combo is used for "save & quit" in the edit program.
Quoted 5 lines
If yes, then it's probably better to keep the map. If not, a special CTRL-C case in code might be the better option.
Sascha
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedRe: [PATCH v3] input: usb keyboard: fix CTRL+ combinations
In reply to Peter MamonovQuoted 6 lines · Peter Mamonov
Signed-off-by Peter Mamonov <[email protected]>Signed-off-by Sam Ravnborg <[email protected]>Signed-off-by Trent Piepho <[email protected]>--- drivers/input/input.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Applied, thanks
Sascha
Quoted 29 lines
drivers/input/input.c +5
-1@@ -18,6 +18,7 @@#include <linux/bitmap.h> #include <input/keyboard.h> #include <dt-bindings/input/linux-event-codes.h> +#include <readkey.h> static LIST_HEAD (input_consumers);@@ -164,7 +165,10 @@ static void input_console_notify(struct input_notifier *in,if (ic->modstate[4 ] || ic->modstate[5 ]) modstate |=1 <<2 ; -if (modstate & (1 <<0 )) +if (modstate & (1 <<1 )) { + ascii = keycode_bb_keys[ev->code]; + ascii = ascii >='a' ?CTL_CH (ascii) :0 ; + }else if (modstate & (1 <<0 )) ascii = keycode_bb_shift_keys[ev->code];else ascii = keycode_bb_keys[ev->code];Signature · 1 line
2.1.4
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox