Allow ToggleTouchpad when locked and during screenshot
Browse files at this commit1fe3353808832f320302ebd856405a99b268c756Parent: 4e3661b1 changed file +2 -0
- src/input/mod.rs +2 -0
src/input/mod.rsmodified+2 -0
| @@ -4848,6 +4848,7 @@ fn allowed_when_locked(action: &Action) -> bool { | |||
| 4848 | | Action::PowerOnMonitors | 4848 | | Action::PowerOnMonitors |
| 4849 | | Action::SwitchLayout(_) | 4849 | | Action::SwitchLayout(_) |
| 4850 | | Action::ToggleKeyboardShortcutsInhibit | 4850 | | Action::ToggleKeyboardShortcutsInhibit |
| 4851 | + | Action::ToggleTouchpad | ||
| 4851 | ) | 4852 | ) |
| 4852 | } | 4853 | } |
| 4853 | 4854 | ||
| @@ -4859,6 +4860,7 @@ fn allowed_during_screenshot(action: &Action) -> bool { | |||
| 4859 | | Action::Suspend | 4860 | | Action::Suspend |
| 4860 | | Action::PowerOffMonitors | 4861 | | Action::PowerOffMonitors |
| 4861 | | Action::PowerOnMonitors | 4862 | | Action::PowerOnMonitors |
| 4863 | + | Action::ToggleTouchpad | ||
| 4862 | // Intended for binds such as volume up/down, lock the screen, etc. | 4864 | // Intended for binds such as volume up/down, lock the screen, etc. |
| 4863 | | Action::Spawn(_) | 4865 | | Action::Spawn(_) |
| 4864 | | Action::SpawnSh(_) | 4866 | | Action::SpawnSh(_) |