mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
Improved key handling in swaylock
Make escape clear buffer Add indicator states for ctrl,shift,super et al Add CapsLock indicator
This commit is contained in:
parent
38c44f2f27
commit
2d884d4e4f
5 changed files with 49 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ enum mask {
|
|||
|
||||
struct swaylock_xkb {
|
||||
uint32_t modifiers;
|
||||
bool caps_lock;
|
||||
struct xkb_state *state;
|
||||
struct xkb_context *context;
|
||||
struct xkb_keymap *keymap;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
|
||||
enum auth_state {
|
||||
AUTH_STATE_IDLE,
|
||||
AUTH_STATE_CLEAR,
|
||||
AUTH_STATE_INPUT,
|
||||
AUTH_STATE_INPUT_NOP,
|
||||
AUTH_STATE_BACKSPACE,
|
||||
AUTH_STATE_VALIDATING,
|
||||
AUTH_STATE_INVALID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue