8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8809047 commit d60f667Copy full SHA for d60f667
test/test.js
@@ -51,4 +51,10 @@ describe('hotkey', function() {
51
document.dispatchEvent(new KeyboardEvent('keydown', {key: 'b', ctrlKey: true}))
52
assert.include(buttonsClicked, 'button3')
53
})
54
+
55
+ it("doesn't trigger elements where the hotkey library has been uninstalled", function() {
56
+ hotkey.uninstall(document.querySelector('#button1'))
57
+ document.dispatchEvent(new KeyboardEvent('keydown', {key: 'b'}))
58
+ assert.deepEqual(buttonsClicked, [])
59
+ })
60
0 commit comments