mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-18 18:23:25 +03:00
GTK: Add support for word left/right keybindings.
This commit is contained in:
parent
4fc78449ff
commit
729e56dccc
@ -152,10 +152,14 @@ uint32_t gtk_gui_gdkkey_to_nskey(GdkEventKey *key)
|
||||
|
||||
case GDK_KEY(Left):
|
||||
case GDK_KEY(KP_Left):
|
||||
if (key->state & GDK_CONTROL_MASK)
|
||||
return NS_KEY_WORD_LEFT;
|
||||
return NS_KEY_LEFT;
|
||||
|
||||
case GDK_KEY(Right):
|
||||
case GDK_KEY(KP_Right):
|
||||
if (key->state & GDK_CONTROL_MASK)
|
||||
return NS_KEY_WORD_RIGHT;
|
||||
return NS_KEY_RIGHT;
|
||||
|
||||
case GDK_KEY(Up):
|
||||
|
Loading…
Reference in New Issue
Block a user