mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Add onRelease option to <keybind>
...to make keybind actions fire on the release event rather then when the
key is first pressed. This is useful for binding actions to modifier keys
only. The most likely use-case for this is the binding of a Super key to a
menu, for example:
<keybind key="Super_L" onRelease="yes">
<action name="Execute" command="rofi -show drun"/>
</keybind>
If another keybind is issued between the press and release, the on-release
keybind is cancelled.
Co-authored-by: @johanmalm
This commit is contained in:
parent
f6c91c8d13
commit
84c222a84f
6 changed files with 51 additions and 5 deletions
|
|
@ -592,6 +592,7 @@ seat_reconfigure(struct server *server)
|
|||
struct input *input;
|
||||
cursor_reload(seat);
|
||||
overlay_reconfigure(seat);
|
||||
keyboard_reset_current_keybind();
|
||||
wl_list_for_each(input, &seat->inputs, link) {
|
||||
switch (input->wlr_input_device->type) {
|
||||
case WLR_INPUT_DEVICE_KEYBOARD:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue