X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH] platform/x86: lenovo: Reassign KEY_CUT to KEY_SELECTIVE_SCREENSHOT for Ideapad laptops
@ 2025-09-11 14:13 Tomáš Hnyk
  2025-09-11 14:18 ` Hans de Goede
  2025-09-15 10:11 ` Ilpo Järvinen
  0 siblings, 2 replies; 5+ messages in thread
From: Tomáš Hnyk @ 2025-09-11 14:13 UTC (permalink / raw)
  To: platform-driver-x86

This key is produced by FN+PRINT_SCREEN and as per Lenovo documentation,
it should be "Open the Snipping tool". This corresponds to
KEY_SELECTIVE_SCRENSHOT, whose keycode is 0x27a. Previously, keycodes
under 248 were preferred due to X11 limitations, so KEY_CUT was used.
This is now being corrected.

Signed-off-by: Tomáš Hnyk <tomashnyk@gmail.com>
---
 Fixes https://bugzilla.kernel.org/show_bug.cgi?id=220566

 drivers/platform/x86/lenovo/ideapad-laptop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/lenovo/ideapad-laptop.c b/drivers/platform/x86/lenovo/ideapad-laptop.c
index fcebfbaf0460..556d50fb7996 100644
--- a/drivers/platform/x86/lenovo/ideapad-laptop.c
+++ b/drivers/platform/x86/lenovo/ideapad-laptop.c
@@ -1328,7 +1328,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 } },

-- 
2.51.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-12-26 20:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-11 14:13 [PATCH] platform/x86: lenovo: Reassign KEY_CUT to KEY_SELECTIVE_SCREENSHOT for Ideapad laptops Tomáš Hnyk
2025-09-11 14:18 ` Hans de Goede
2025-12-23 18:36   ` Tomáš Hnyk
2025-09-15 10:11 ` Ilpo Järvinen
2025-12-26 20:37   ` Tomáš Hnyk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox