diff options
Diffstat (limited to 'src/content/domains/KeySequence.ts')
-rw-r--r-- | src/content/domains/KeySequence.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/domains/KeySequence.ts b/src/content/domains/KeySequence.ts index 6a05c2f..61ceab1 100644 --- a/src/content/domains/KeySequence.ts +++ b/src/content/domains/KeySequence.ts @@ -1,4 +1,4 @@ -import Key, * as keyUtils from './Key'; +import Key from './Key'; export default class KeySequence { private keys: Key[]; @@ -24,7 +24,7 @@ export default class KeySequence { return false; } for (let i = 0; i < o.keys.length; ++i) { - if (!keyUtils.equals(this.keys[i], o.keys[i])) { + if (!this.keys[i].equals(o.keys[i])) { return false; } } @@ -54,7 +54,7 @@ export const fromMapKeys = (keys: string): KeySequence => { return fromMapKeysRecursive( remainings.slice(nextPos), - mappedKeys.concat([keyUtils.fromMapKey(remainings.slice(0, nextPos))]) + mappedKeys.concat([Key.fromMapKey(remainings.slice(0, nextPos))]) ); }; |