]> www.infradead.org Git - users/dwmw2/linux.git/commit
kdb: fix ctrl+e/a/f/b/d/p/n broken in keyboard mode
authorNir Lichtman <nir@lichtman.org>
Mon, 11 Nov 2024 21:56:22 +0000 (21:56 +0000)
committerDaniel Thompson <daniel.thompson@linaro.org>
Mon, 18 Nov 2024 15:20:22 +0000 (15:20 +0000)
commit24b2455fe8fce17258fab4bb945d8e6929baeb77
tree4f3916bf34a802a4c7e4785d5d7789e58efbe6c5
parent9c98750eb3079ee6e47a448fe095347821a21b45
kdb: fix ctrl+e/a/f/b/d/p/n broken in keyboard mode

Problem: When using kdb via keyboard it does not react to control
characters which are supported in serial mode.

Example: Chords such as ctrl+a/e/d/p do not work in keyboard mode

Solution: Before disregarding non-printable key characters, check if they
are one of the supported control characters, I have took the control
characters from the switch case upwards in this function that translates
scan codes of arrow keys/backspace/home/.. to the control characters.

Suggested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Nir Lichtman <nir@lichtman.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20241111215622.GA161253@lichtman.org
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
kernel/debug/kdb/kdb_keyboard.c