By default the framed engine (which is in an iframe) propagates all keyboard events to the parent document. This is problematic for events handled by the autocompletion. For example, using the ESC key to cancel the autocomplete popup also triggers the dialog to cancel editing the tiddler.
With this PR we override the default handleKeyDownEvent method of the framed engine, and only call it for events that we have not handled in the autocompletion.
By default the framed engine (which is in an iframe) propagates all keyboard events to the parent document. This is problematic for events handled by the autocompletion. For example, using the ESC key to cancel the autocomplete popup also triggers the dialog to cancel editing the tiddler.
With this PR we override the default handleKeyDownEvent method of the framed engine, and only call it for events that we have not handled in the autocompletion.