]> git.mdlowis.com Git - proto/labwc.git/commit
labnag: add --keyboard-focus option
authortokyo4j <hrak1529@gmail.com>
Wed, 1 Oct 2025 05:49:23 +0000 (14:49 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 13 Oct 2025 18:03:43 +0000 (19:03 +0100)
commitef73431367c30f9ab2241f577e4816f23e7794b5
tree93b2d0c8d4a49a138feb154a0b116cda05530f66
parent03c70e8a5e3e685a6d94fbca5d9eda1e56ef49e5
labnag: add --keyboard-focus option

The new `--keyboard-focus [none|on-demand|exclusive]` option (default:
`none`) allows to some keyboard controls in labnag:

  Right-arrow or Tab: move the button selection to the right
  Left-arrow or Shift-Tab: move the button selection to the left
  Enter: press the selected button
  Escape: close labnag

The selected button is highlighted with the inner 1px border. Maybe we can
instead use different colors for the selected button, but I prefer the
inner border for now because it doesn't require us to add new color
options or make them inherit labwc's theme.
clients/labnag.c
clients/meson.build
docs/labnag.1.scd