Skip to content

Commit

Permalink
#531 Fix shift key bug getting stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmartin committed Jul 15, 2021
1 parent efc1eb4 commit ae4a41b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/interface/VFBTermInfo/VFBTermInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,14 @@ class VFBTermInfoWidget extends React.Component {
$('#add-new-query-container')[0].hidden = true;
$('#query-builder-items-container')[0].hidden = true;
}

/**
* Fire event to set the Shift key as not pressed, this is needed since the presence of the
* confirm() dialog prevents the DOM to un-set the 'shift' key.
*/
var e = new KeyboardEvent('keyup', {bubbles : true, cancelable : true, shiftKey : false});
document.querySelector("body").dispatchEvent(e);

$("body").css("cursor", "progress");


Expand Down

0 comments on commit ae4a41b

Please sign in to comment.