platform/x86: ideapad-laptop: Reassign KEY_CUT to KEY_SELECTIVE_SCREENSHOT
Subsystems (3)
PATCH v2 1/1 platform/x86: ideapad-laptop: Reassign KEY_CUT to KEY_SELECTIVE_SCREENSHOT
As per Lenovo documentation, Fn+Print-Screen should "Open the Snipping tool" which corresponds to KEY_SELECTIVE_SCREENSHOT (keycode 0x27a). It is currently assigned to KEY_CUT because keycodes under 248 were preferred due to X11 limitations.
Reassign Fn+Print-Screen from KEY_CUT to KEY_SELECTIVE_SCREENSHOT.
--- drivers/platform/x86/lenovo/ideapad-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/lenovo/ideapad-laptop.c +1 -1
@@ -1367,7 +1367,7 @@ static const struct key_entry ideapad_keymap[] = {/* Performance toggle also Fn+Q, handled inside ideapad_wmi_notify() */ { KE_KEY, 0x3d | IDEAPAD_WMI_KEY, { KEY_PROG4 } },/* shift + prtsc */ - { KE_KEY, 0x2d | IDEAPAD_WMI_KEY, { KEY_CUT } }, + { KE_KEY, 0x2d | IDEAPAD_WMI_KEY, { KEY_SELECTIVE_SCREENSHOT } }, { KE_KEY, 0x29 | IDEAPAD_WMI_KEY, { KEY_TOUCHPAD_TOGGLE } }, { KE_KEY, 0x2a | IDEAPAD_WMI_KEY, { KEY_ROOT_MENU } },
Signature · 1 line
2.52.0
Quoted 10 lines · Tomáš Hnyk
As per Lenovo documentation, Fn+Print-Screen should "Open the Snipping tool" which corresponds to
KEY_SELECTIVE_SCREENSHOT(keycode0x27a). It is currently assigned toKEY_CUTbecause keycodes under 248 were preferred due to X11 limitations.Reassign Fn+Print-Screen from
KEY_CUTtoKEY_SELECTIVE_SCREENSHOT.Signed-off-by Tomáš Hnyk <[email protected]>
Thanks for the update, next time please include all maintainers as receipients as well (as indicated e.g. by scripts/get_maintainers.pl).
I've applied this now to the review-ilpo-fixes branch.
FYI, I had to remove the extra empty line from your tags block and fix the bugzilla link while applying the patch.
--
i.
Quoted 18 lines
--- drivers/platform/x86/lenovo/ideapad-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/lenovo/ideapad-laptop.c +1
-1@@ -1367,7 +1367,7 @@ static const struct key_entry ideapad_keymap[] = {/* Performance toggle also Fn+Q, handled inside ideapad_wmi_notify() */ { KE_KEY, 0x3d | IDEAPAD_WMI_KEY, { KEY_PROG4 } },/* shift + prtsc */ - { KE_KEY, 0x2d | IDEAPAD_WMI_KEY, { KEY_CUT } }, + { KE_KEY, 0x2d | IDEAPAD_WMI_KEY, { KEY_SELECTIVE_SCREENSHOT } }, { KE_KEY, 0x29 | IDEAPAD_WMI_KEY, { KEY_TOUCHPAD_TOGGLE } }, { KE_KEY, 0x2a | IDEAPAD_WMI_KEY, { KEY_ROOT_MENU } },