Instead of pressing ⌘Q, hold ⌘Q to close applications.
Signature | HoldToQuit.defaultHotkey |
---|---|
Type | Variable |
Description | Default hotkey mapping |
Source | Source/HoldToQuit.spoon/init.lua line 22 |
Signature | HoldToQuit.duration |
---|---|
Type | Variable |
Description | Integer containing the duration (in seconds) how long to hold |
Source | Source/HoldToQuit.spoon/init.lua line 16 |
Signature | HoldToQuit.hotkeyQbj |
---|---|
Type | Variable |
Description | Hotkey object |
Source | Source/HoldToQuit.spoon/init.lua line 29 |
Signature | HoldToQuit.timer |
---|---|
Type | Variable |
Description | Timer for counting the holding time |
Source | Source/HoldToQuit.spoon/init.lua line 34 |
Signature | HoldToQuit:bindHotkeys(mapping) |
---|---|
Type | Method |
Description | Binds hotkeys for HoldToQuit |
Parameters |
|
Returns | |
Source | Source/HoldToQuit.spoon/init.lua line 112 |
Signature | HoldToQuit:init() |
---|---|
Type | Method |
Description | Initialize spoon |
Parameters |
|
Returns | |
Source | Source/HoldToQuit.spoon/init.lua line 50 |
Signature | HoldToQuit.killCurrentApp() |
---|---|
Type | Method |
Description | Kill the frontmost application |
Parameters |
|
Returns | |
Source | Source/HoldToQuit.spoon/init.lua line 39 |
Signature | HoldToQuit:onKeyDown() |
---|---|
Type | Method |
Description | Start timer on keyDown |
Parameters |
|
Returns | |
Source | Source/HoldToQuit.spoon/init.lua line 60 |
Signature | HoldToQuit:onKeyUp() |
---|---|
Type | Method |
Description | Stop Timer & show alert message |
Parameters |
|
Returns | |
Source | Source/HoldToQuit.spoon/init.lua line 70 |
Signature | HoldToQuit:start() |
---|---|
Type | Method |
Description | Start HoldToQuit with default hotkey |
Parameters |
|
Returns | |
Source | Source/HoldToQuit.spoon/init.lua line 84 |
Signature | HoldToQuit:stop() |
---|---|
Type | Method |
Description | Disable HoldToQuit hotkey |
Parameters |
|
Returns | |
Source | Source/HoldToQuit.spoon/init.lua line 100 |