You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I've been seeing an odd behavior ever since I added the altKeyPop extension to my keyboard. Whenever I use the physical keyboard to type in a value, the extensions callbacks seems to block input intermittently and the result is dropped characters from the input.
The example is when I type "Hello there my old friend" what will actually appear in the input is: "Hello ter my ol frend". I don't think I have any more callbacks than a normal implementation, and I worry the setTimeout in the implementation is blocking keyboard input for a fraction of a second, not enough to notice when clicking the virtual buttons with the mouse, but enough that a quick typer loses their characters when using their physical keyboard.
Is there any combination of other callbacks that exacerbates the feedback loop that makes this character dropping happen?
Here is the config for my keyboard:
.keyboard(keyboardOptions)
.addAltKeyPopup({
// events fired after the popup is visible & hidden
popupVisible: 'popup-visible',
popupHidden: 'popup-hidden',
// time to hold down a button in milliseconds to trigger a popup
holdTime: 800,
})
this.board = $('#keyboard', this.$el).getkeyboard();
this.board.$el.on('keyboardChange', (e, keyboard) => {
this._maskInput(keyboard.$preview.val())
if (keyboard.last.virtual) {
handleTouch(e)
} else {
resetSleepTimer()
}
});
I ended up switching to use event.key within the extension code. This event property is supported in most modern browsers, but not all. I bumped the extension's major version because of this change.
Hello, I've been seeing an odd behavior ever since I added the altKeyPop extension to my keyboard. Whenever I use the physical keyboard to type in a value, the extensions callbacks seems to block input intermittently and the result is dropped characters from the input.
The example is when I type "Hello there my old friend" what will actually appear in the input is: "Hello ter my ol frend". I don't think I have any more callbacks than a normal implementation, and I worry the setTimeout in the implementation is blocking keyboard input for a fraction of a second, not enough to notice when clicking the virtual buttons with the mouse, but enough that a quick typer loses their characters when using their physical keyboard.
Is there any combination of other callbacks that exacerbates the feedback loop that makes this character dropping happen?
Here is the config for my keyboard:
keyboardOptions is roughly equal to:
The text was updated successfully, but these errors were encountered: