diff options
| author | Teddy Wing | 2019-06-19 22:00:48 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2019-06-19 22:00:48 +0200 | 
| commit | dbc06d1467262cc41459e6aef71113b7df9289fd (patch) | |
| tree | 57dd9e4da548c6ed3c54546629784ac46528305a | |
| parent | 54cc763401ad033404424749fba40b31f739ba19 (diff) | |
| download | dothammerspoon-dbc06d1467262cc41459e6aef71113b7df9289fd.tar.bz2 | |
application_switch: Allow cancelling out of F13 mode
Otherwise it will stay active until the next time I press a bound key,
forcibly switching applications when not intended.
| -rw-r--r-- | application_switch.lua | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/application_switch.lua b/application_switch.lua index cf2f533..84dbe88 100644 --- a/application_switch.lua +++ b/application_switch.lua @@ -18,8 +18,9 @@ end)  -- Mode to activate lesser-used applications  application_switch_mode = hs.hotkey.modal.new({}, 'f13') - ---TODO: Deactivate with F13 +application_switch_mode:bind({}, 'f13', function() +	application_switch_mode:exit() +end)  application_switch_mode:bind({}, 'q', function()  	hs.application.find('org.libreoffice.script'):activate(activateAllWindows) | 
