Skip to content

Commit 791738b

Browse files
hadessdtor
authored andcommitted
Input: soc_button_array - use "Windows" key for "Home"
KEY_HOME is the key to go back to the beginning of the line, not the key to get into an overview mode, as Windows does. GNOME can already make use of the Windows key on multiple form factors, and other desktop environments can use it depending on the form factor. Using "Windows" as the emitted key also means that the keycode sent out matches the symbol on the key itself. So switch KEY_HOME to KEY_LEFTMETA ("Windows" key). Signed-off-by: Bastien Nocera <hadess@hadess.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 98a4a59 commit 791738b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/misc/soc_button_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static int soc_button_probe(struct platform_device *pdev)
195195

196196
static struct soc_button_info soc_button_PNP0C40[] = {
197197
{ "power", 0, EV_KEY, KEY_POWER, false, true },
198-
{ "home", 1, EV_KEY, KEY_HOME, false, true },
198+
{ "home", 1, EV_KEY, KEY_LEFTMETA, false, true },
199199
{ "volume_up", 2, EV_KEY, KEY_VOLUMEUP, true, false },
200200
{ "volume_down", 3, EV_KEY, KEY_VOLUMEDOWN, true, false },
201201
{ "rotation_lock", 4, EV_SW, SW_ROTATE_LOCK, false, false },

0 commit comments

Comments
 (0)