From 2406c29b41d9481e3999aaaa0891ea8da6376e51 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 12 Sep 2021 01:20:53 +0300 Subject: [PATCH] hotkeys to use key instead of a code --- modules/ui/hotkeys.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ui/hotkeys.js b/modules/ui/hotkeys.js index d8fcaaf8..b19566bb 100644 --- a/modules/ui/hotkeys.js +++ b/modules/ui/hotkeys.js @@ -172,3 +172,8 @@ function closeAllDialogs() { closeDialogs(); hideOptions(); } + +function closeAllDialogs() { + closeDialogs(); + hideOptions(); +}