Input: sysrq - pass along lone Alt + SysRq
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 15 Nov 2010 08:23:42 +0000 (00:23 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 15 Nov 2010 09:26:33 +0000 (01:26 -0800)
commitfcb7193096969ca9e5b9219b9a99ddf299d4054f
treea9d06c889c85102f0f9baafbeea60aabde8f1acc
parent5fdbe44d033d059cc56c2803e6b4dbd8cb4e5e39
Input: sysrq - pass along lone Alt + SysRq

When user presses and releases Alt + SysRq without pressing any of the
hot keys re-inject the combination and pass it on to userspace instead
of suppressing it - maybe he or she wanted to take print screen
instead of invoking SysRq handler.

Also pass along release events for keys that have been pressed before
SysRq mode has been invoked so that keys do not appear to be "stuck".

Acked-by: Jason Wessel <jason.wessel@windriver.com>
Tested-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/char/sysrq.c