Is there a way to prevent accidentally quitting apps by pressing CMD+Q, like in Chrome or CommandQ app with BTT?
Yes. Here is one method that I use to achieve the same feature:
- Create a 'global' shortcut with the trigger as Command + Q
- Leave the rest empty, and go about your day.
Works for me, pretty simple.
Have been using this Karabiner script and I love it:
{
"description": "Quit application by pressing command-q twice",
"manipulators": [
{
"conditions": [
{
"name": "command-q",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "q",
"modifiers": { "mandatory": ["command"] }
},
"to": [
{
"key_code": "q",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "q",
"modifiers": { "mandatory": ["command"] }
},
"to": [
{
"set_variable": {
"name": "command-q",
"value": 1
}
}
],
"to_delayed_action": {
"to_if_canceled": [
{
"set_variable": {
"name": "command-q",
"value": 0
}
}
],
"to_if_invoked": [
{
"set_variable": {
"name": "command-q",
"value": 0
}
}
]
},
"type": "basic"
}
]
}
double cmd+q to quit is also pretty easy to setup with BTT:
double_q_quit.bttpreset.bttpreset (5.9 KB)
long press q is also pretty simple:
long_q_quit.bttpreset (6.0 KB)