aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/keyboard.h
Commit message (Collapse)AuthorAge
* Move sway-specific functions in common/util.c into sway/Libravatar M Stoeckl2019-01-21
| | | | | | Modifier handling functions were moved into sway/input/keyboard.c; opposite_direction for enum wlr_direction into sway/tree/output.c; and get_parent_pid into sway/tree/root.c .
* Disarm key repeat on reloadLibravatar Brian Ashworth2019-01-14
| | | | | | When resetting the keyboard during reload, disarm the key repeat on all keyboards since the bindings (and possibly keyboard) will be freed before the key repeat can go off.
* binding: match single-key bindings if no multi-key binding matchedLibravatar Franklin "Snaipe" Mathieu2018-10-29
| | | | | | | This makes bindings more snappy when the user is typing faster than his keycaps are releasing. Signed-off-by: Franklin "Snaipe" Mathieu <me@snai.pe>
* Bindings use advised keyboard repeat parametersLibravatar frsfnrrg2018-07-29
| | | | | | | | | Now 'repeat_delay' and 'repeat_rate' control the initial delay and rate (per second) of repeated binding invocations. If the repeat delay is zero, binding repetition is disabled. When the repeat rate is zero, the binding is repeated exactly once, assuming no other key events intervene.
* Implement key repeat for pressed key bindingsLibravatar frsfnrrg2018-07-29
| | | | | | | | Each sway_keyboard is provided with a wayland timer event source. When a valid keypress binding has been found, a callback to handle_keyboard_repeat is set. Any key event will either clear the callback or (if the new key event is a valid keypress binding) delay the callback again.
* Fix keyboard shortcut handling inconsistenciesLibravatar frsfnrrg2018-06-12
| | | | | | | | | | | | | | | | | | * Ensure that modifier keys are identified even when the next key does not produce a keysym. This requires that modifier change tracking be done for each sway_shortcut_state. * Permit regular and --release shortcuts on the same key combination. Distinct bindings are identified for press and release cases; note that the release binding needs to be identified for both key press and key release events. * Maintain ascending sort order for the shortcut state list, and keep track of the number of pressed key ids, for simpler (and hence faster) searching of the list of key bindings. * Move binding duplicate detection into get_active_binding to avoid duplicating error messages.
* Comment to explain sway_shortcut_state listsLibravatar frsfnrrg2018-06-01
|
* Rewrite shortcut handling code to avoid hardcoded valuesLibravatar frsfnrrg2018-06-01
| | | | | | | | | The same shortcut algorithm is now used for keycodes, raw keysyms, and translated keysyms. Pressed keysyms are now stored in association with the keycodes that generated them. Modifier keycodes (and associated keysyms) are identified retroactively by the subsequent change to the modifier flags.
* binding releaseLibravatar Tony Crisci2018-01-04
|
* keyboard translate keysymsLibravatar Tony Crisci2017-12-27
|
* fix keyboard hotpluggingLibravatar Tony Crisci2017-12-16
|
* fix header includesLibravatar Tony Crisci2017-12-16
|
* basic configurationLibravatar Tony Crisci2017-12-14
|
* sway input deviceLibravatar Tony Crisci2017-12-12
|
* keyboard removeLibravatar Tony Crisci2017-12-10
|
* basic keyboardLibravatar Tony Crisci2017-12-10