mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add alt key hook to keyboard event handler (just in case :-)
This commit is contained in:
@@ -24,7 +24,8 @@ RED.keyboard = function() {
|
||||
if (handler && handler.ondown) {
|
||||
if (!handler.modifiers ||
|
||||
((!handler.modifiers.shift || d3.event.shiftKey) &&
|
||||
(!handler.modifiers.ctrl || d3.event.ctrlKey))) {
|
||||
(!handler.modifiers.ctrl || d3.event.ctrlKey ) &&
|
||||
(!handler.modifiers.alt || d3.event.altKey ) )) {
|
||||
handler.ondown();
|
||||
}
|
||||
}
|
||||
@@ -35,7 +36,8 @@ RED.keyboard = function() {
|
||||
if (handler && handler.onup) {
|
||||
if (!handler.modifiers ||
|
||||
((!handler.modifiers.shift || d3.event.shiftKey) &&
|
||||
(!handler.modifiers.ctrl || d3.event.ctrlKey))) {
|
||||
(!handler.modifiers.ctrl || d3.event.ctrlKey ) &&
|
||||
(!handler.modifiers.alt || d3.event.altKey ) )) {
|
||||
handler.onup();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user