If you call detachFromControl on an element in a webpage, then subsequently type with the hardware keyboard into that element, the following error is raised:
Uncaught TypeError: Cannot read properties of null (reading 'interface')
at Ue (outputTargetForElement.ts:45:31)
at he (outputTargetForElement.ts:11:10)
at l._KeyDown (hardwareEventKeyboard.ts:301:20)
This appears to be a regression in 17.0, because I cannot repro with 16.0.142.
Reproduce the bug
The following page was sufficient to reproduce the problem.
Click in the textarea, type, see that Keyman is not active.
Click Attach button, type again into text area, see that Keyman is active (may need to switch to Thai keyboard in KeymanWeb to prove)
Click Detach button, type again into text area, see that Keyman is not active, but error is raised on each keystroke.
Sounds like the keyboard event listeners aren't being properly disconnected for the setup provided in the issue above; that should help narrow down what control paths aren't being handled properly.
Describe the bug
If you call
detachFromControl
on an element in a webpage, then subsequently type with the hardware keyboard into that element, the following error is raised:This appears to be a regression in 17.0, because I cannot repro with 16.0.142.
Reproduce the bug
The following page was sufficient to reproduce the problem.
Expected behavior
No response
Related issues
No response
Keyman apps
Keyman version
17.0.213-alpha
Operating system
Windows 10
Device
No response
Target application
No response
Browser
Chrome 119.0.6045.124
Keyboard name
No response
Keyboard version
No response
Language name
No response
Additional context
No response