From 7e3a3644e0c0c0ca017b2e2f8c92c098d8c930c5 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 6 Sep 2020 10:02:29 +1000 Subject: [PATCH] docs: Fix simple typo, neccessary -> necessary There is a small typo in keymaster.js. Should read `necessary` rather than `neccessary`. --- keymaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keymaster.js b/keymaster.js index 8f5b5fc..9f67686 100644 --- a/keymaster.js +++ b/keymaster.js @@ -101,7 +101,7 @@ for(k in _mods) if((!_mods[k] && index(handler.mods, +k) > -1) || (_mods[k] && index(handler.mods, +k) == -1)) modifiersMatch = false; - // call the handler and stop the event if neccessary + // call the handler and stop the event if necessary if((handler.mods.length == 0 && !_mods[16] && !_mods[18] && !_mods[17] && !_mods[91]) || modifiersMatch){ if(handler.method(event, handler)===false){ if(event.preventDefault) event.preventDefault();