locking: Lock keys statelessly

Locking is not determined by button state any more, but rather based on the view active at the moment. If pressing/locking a key results in the current view being active, the key is active. If locking a key results in the current view, the unlock view is activated.
This commit is contained in:
Dorota Czaplejewicz
2020-02-02 15:41:47 +00:00
parent 97d8dfe4cb
commit 500c23beec
5 changed files with 40 additions and 41 deletions

View File

@ -392,7 +392,6 @@ impl Layout {
name.into(),
KeyState {
pressed: PressType::Released,
locked: false,
keycodes,
action,
}