Skip to content

Commit 7341c50

Browse files
committed
Reduced menu overlay key possible keybindings to 1.
1 parent e31c330 commit 7341c50

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,11 +1334,9 @@ class CinnamonMenuApplet extends Applet.TextIconApplet {
13341334

13351335
_getInstancesWithSameOverlayBinding() {
13361336
const instances = Main.AppletManager.getRunningInstancesForUuid("[email protected]");
1337-
const binds = this.overlayKey.split('::');
13381337
return instances.filter(instance => {
13391338
if (instance === this) return false;
1340-
const instance_binds = instance.overlayKey.split('::');
1341-
return instance_binds.some(bind => bind && binds.includes(bind));
1339+
return instance.overlayKey === this.overlayKey;
13421340
});
13431341
}
13441342

files/usr/share/cinnamon/applets/[email protected]/settings-schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"overlay-key" : {
3939
"type" : "keybinding",
4040
"description" : "Keyboard shortcut to open and close the menu",
41-
"default" : "Super_L::Super_R"
41+
"num_bind": 1,
42+
"default" : "Super_L"
4243
},
4344
"menu-custom" : {
4445
"type" : "switch",

files/usr/share/cinnamon/cinnamon-settings/bin/JsonSettingsWidgets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"icon_categories" : "icon_categories",
3434
"default_category" : "default_category",
3535
"show-seconds" : "show_seconds",
36-
"show-buttons" : "show_buttons"
36+
"show-buttons" : "show_buttons",
37+
"num_bind" : "num_bind",
3738
}
3839

3940
OPERATIONS = ['<=', '>=', '<', '>', '!=', '=']

0 commit comments

Comments
 (0)