mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 13:55:49 +01:00
Prevent certain sites from overriding mappings. Closes issue #118.
This commit is contained in:
@@ -245,8 +245,9 @@ var MapHive = Class("MapHive", Contexts.Hive, {
|
||||
get: function (mode, cmd, skipPassThrough = false) {
|
||||
let map = this.getStack(mode).mappings[cmd];
|
||||
|
||||
if (skipPassThrough && map && !map.passThrough)
|
||||
if (skipPassThrough && map && map.passThrough)
|
||||
return null;
|
||||
|
||||
return map;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user