-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
When trying to use vim-in-textarea I've encountered next problem:
textarea seems to not react on any keypresses. There is no possibility to enter insert mode / invoke commands. It seems that on_keypress receive events with event.keyCode == 0. The workaround was to change on_keypress function.
Was:
this.on_keypress = function(event) {
var m = String.fromCharCode( event.keyCode )
var p = this.on_key( m, event )
return p
}
Workaround:
this.on_keypress = function(event) {
var code = event.keyCode || event.charCode
var m = String.fromCharCode( code )
var p = this.on_key( m, event )
return p
}
I have not tested this in any other browser...
Thank you for your work!
Metadata
Metadata
Assignees
Labels
No labels