Skip to content

Commit

Permalink
fixed reserved hotkeys overwriting custom spacebar hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
Dezaimasu committed Sep 14, 2019
1 parent 06da7ee commit 1bf3f9a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,8 @@ const de_hotkeys = {
},

bindReservedHotkeys: function(){
Object.assign(de_hotkeys.keyboardHotkeys, {
'00032': Object.assign({mouseButton: 0}, de_hotkeys.fallbackRule), // Space, save to default location
'10032': Object.assign({mouseButton: 2}, de_hotkeys.fallbackRule), // Ctrl+Space, save to default location with original filename
});
this.assignHotkeyRule(Object.assign({mouseButton: 0, id: '00032'}, de_hotkeys.fallbackRule)); // Space, save to default location
this.assignHotkeyRule(Object.assign({mouseButton: 2, id: '10032'}, de_hotkeys.fallbackRule)); // Ctrl+Space, save to default location with original filename
},

buildHotkeyId: function(event){
Expand Down Expand Up @@ -746,7 +744,9 @@ const de_hotkeys = {
},

getPriorityLevel: function(rule){
if (!rule.domain) {
if (rule.priority) {
return rule.priority;
} else if (!rule.domain) {
return 3;
} else if (this.isExclusionRule(rule)) {
return 2;
Expand Down

0 comments on commit 1bf3f9a

Please sign in to comment.