mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-18 18:23:25 +03:00
GTK: Add support for word delete left/right.
These are ctrl+delete and ctrl+backspace.
This commit is contained in:
parent
76ede0f7d6
commit
88d5ea8668
@ -131,12 +131,16 @@ uint32_t gtk_gui_gdkkey_to_nskey(GdkEventKey *key)
|
||||
case GDK_KEY(BackSpace):
|
||||
if (key->state & GDK_SHIFT_MASK)
|
||||
return NS_KEY_DELETE_LINE_START;
|
||||
else if (key->state & GDK_CONTROL_MASK)
|
||||
return NS_KEY_DELETE_WORD_LEFT;
|
||||
else
|
||||
return NS_KEY_DELETE_LEFT;
|
||||
|
||||
case GDK_KEY(Delete):
|
||||
if (key->state & GDK_SHIFT_MASK)
|
||||
return NS_KEY_DELETE_LINE_END;
|
||||
else if (key->state & GDK_CONTROL_MASK)
|
||||
return NS_KEY_DELETE_WORD_RIGHT;
|
||||
else
|
||||
return NS_KEY_DELETE_RIGHT;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user