1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Global variable definition in for loop: Fixed

This commit is contained in:
ralphwetzel 2022-06-30 22:08:58 +02:00
parent 81e7b052da
commit 4d42f8ec58

View File

@ -268,7 +268,7 @@ RED.keyboard = (function() {
} }
if (Object.keys(handler).length > 0) { if (Object.keys(handler).length > 0) {
// check if there's a potential combined handler initiated by this keyCode // check if there's a potential combined handler initiated by this keyCode
for (h in handler) { for (let h in handler) {
if (matchHandlerToEvent(evt,handler[h]) > -1) { if (matchHandlerToEvent(evt,handler[h]) > -1) {
partialState = handler; partialState = handler;
evt.preventDefault(); evt.preventDefault();