]> git.mdlowis.com Git - proto/labwc.git/commit
Add onRelease option to <keybind>
authorSimon Long <simon@raspberrypi.com>
Fri, 26 Apr 2024 10:05:12 +0000 (11:05 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 9 Jun 2024 20:15:58 +0000 (21:15 +0100)
commit84c222a84f7e04c1282729d6c1376f334878666d
treec7a4faed561bdc4b23aba0903634126d60f0cd86
parentf6c91c8d1359590debc75b01fb87d6dbb768c38e
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
docs/labwc-config.5.scd
include/config/keybind.h
include/input/keyboard.h
src/config/rcxml.c
src/input/keyboard.c
src/seat.c