summaryrefslogtreecommitdiff
path: root/include/netsurf/keypress.h
Commit message (Collapse)AuthorAgeFilesLines
* textarea: implement NS_KEY_DELETE_WORD_{LEFT,RIGHT}Pranjal Kole2022-01-221-0/+2
| | | | | | | | | | | | | | | | | | | | | NS_KEY_DELETE_WORD_{LEFT,RIGHT} have been added to include/netsurf/keypress.h and implemented in desktop/textarea.c An unsigned int, caret_copy, has been added since both of these require a temporary variable to hold the original position of the caret. The LEFT one deletes separators towards the left till it encounters a non-separator and then deletes the non-separators until it encounters a separator. The caret is moved towards the left by the number of characters deleted. The RIGHT one does the same towards the right, but the caret is kept at its original position. These are intended to be mapped to Ctrl+Backspace and Ctrl+Delete by most frontends. Additionally, some style and typo fixes have been made.
* move key press enums and operations to their own headerVincent Sanders2016-07-011-0/+83