Skip to content

Commit b528a43

Browse files
committed
Hack 1Password 7 to respond to command+backslash *only* in web browser
This Karabiner modification works around 1Password 7's global takeover of the command+backslash keyboard shortcut [1]. To make this work, open 1Password 7's preferences, and change the "Fill Login or Show 1Password" shortcut from ⌘\ (command+backslash) to ⌃⌥⇧⌘\ (control+option+shift+command+backslash). In other words, we're changing the keyboard shortcut to something you're unlikely to ever intentionally use. Then, enable this rule in Karabiner Elements. With this rule enabled, whenever you hit ⌘\ in Chrome, Firefox, or Safari, Karabiner Elements will translate that keystroke to ⌃⌥⇧⌘\, which will trigger 1Password's "Fill Login or Show 1Password" shortcut. [1]: https://1password.community/discussion/91176/command-backslash-is-overriding-the-same-keyboard-shortcut-action-in-other-non-browser-application
1 parent d99846b commit b528a43

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"title": "[1Password] Configure command+\\ to open 1Password *only* in browsers",
3+
"rules": [
4+
{
5+
"manipulators": [
6+
{
7+
"conditions": [
8+
{
9+
"bundle_identifiers": [
10+
"^com\\.google\\.Chrome$",
11+
"^com\\.apple\\.Safari$",
12+
"^org\\.mozilla\\.firefox$"
13+
],
14+
"type": "frontmost_application_if"
15+
}
16+
],
17+
"description": "[1Password] Use command+\\ to trigger 1Password *only* in browsers. To use this, configure 1Password's \"Fill Login\" keyboard shortcut to ⌃⌥⇧⌘\\ (control+option+shift+command+backslash).",
18+
"from": {
19+
"key_code": "backslash",
20+
"modifiers": {
21+
"mandatory": [
22+
"command"
23+
]
24+
}
25+
},
26+
"to": [
27+
{
28+
"key_code": "backslash",
29+
"modifiers": [
30+
"left_command",
31+
"left_shift",
32+
"left_control",
33+
"left_option"
34+
]
35+
}
36+
],
37+
"type": "basic"
38+
}
39+
]
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)