Closed MaxGyver83 closed 4 years ago
I have tried to find the reason for this issue.
When I enter text into one of the inputs, I get values like those in shortcut.js
:
e
= [object KeyboardEvent]
window.event
= undefined
keyCode
= 73
character
= i
When I enter text into the textarea, I get:
e
= [object Event]
window.event
= [object KeyboardEvent]
keyCode
= 73
character
= i
keyCode
doesn't get updated in the textarea, no matter which key I press.
Then I changed
e = e || window.event;
to
e = window.event || e;
Then e
is always a KeyboardEvent
and the keyCodes are correct. But I still don't get vim openend.
Right yeah, I think the root cause for this is similar to what I'm hitting in https://github.com/jlebon/textern/pull/43. I.e. newly dynamically created textareas throw off shortcut.js
.
OK, thanks for your answer!
This is fixed in the v0.6 release!
Awesome! Thank you.
textern
does not work in TiddlyWiki textareas. How to reproduce:+
button (Create a new tiddler) on the right side panel. This opens a newdiv
with 5input
s and a largetextarea
.