ice-code-editor icon indicating copy to clipboard operation
ice-code-editor copied to clipboard

Broken with Typio Form Recovery extension

Open eee-c opened this issue 7 years ago • 0 comments

For some reason typio is intercepting key inputs and restoring the editor. This does not happen with the old version of 3DE, but that may be due to different version of ACE being used.

To reproduce, install Typio, make sure it's enabled, then create a project with the following code:

<body></body>
<script>

document.addEventListener("keydown",sendKeyDown);
function sendKeyDown(event){
  var code = event.code;
  alert('Pressed: ' + code);
}
</script>

Hide the code, then try pressing a key. The alert will show, but the editor will immediately restore. Even clicking in the page will restore the editor.

Attempting to disable the event with event.preventDefault() or event.stopImmediatePropagation() does not help.

eee-c avatar Oct 09 '18 02:10 eee-c