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

Fix safari/firefox detection of Meta key up

This commit is contained in:
Nick O'Leary 2016-11-06 00:24:01 +00:00
parent 8a47d36480
commit de225205bd

View File

@ -1177,7 +1177,8 @@ RED.view = (function() {
} }
function disableQuickJoinEventHandler(evt) { function disableQuickJoinEventHandler(evt) {
if (evt.keyCode === 17 || evt.keyCode === 91) { // Check for ctrl (all browsers), "Meta" (Chrome/FF), keyCode 91 (Safari)
if (evt.keyCode === 17 || evt.key === "Meta" || evt.keyCode === 91) {
resetMouseVars(); resetMouseVars();
hideDragLines(); hideDragLines();
redraw(); redraw();