From d1a66cb948d1868bcbf03b2b1e5cd4a425ed0afe Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Thu, 26 Jul 2018 13:13:16 +0300 Subject: disabled keys repeat --- kvmd/web/js/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvmd/web/js') diff --git a/kvmd/web/js/keyboard.js b/kvmd/web/js/keyboard.js index 5092abe8..9caae324 100644 --- a/kvmd/web/js/keyboard.js +++ b/kvmd/web/js/keyboard.js @@ -24,7 +24,7 @@ var keyboard = new function() { var __keyboardHandler = function(event, state) { event.preventDefault(); el_key = $(event.code); - if (el_key) { + if (el_key && !event.repeat) { __commonHandler(el_key, state, "pressed"); __unholdModifiers(); } -- cgit v1.2.3