feenkcom / gtoolkit

Glamorous Toolkit is the Moldable Development environment. It empowers you to make systems explainable through experiences tailored for each problem.
https://gtoolkit.com
MIT License
1.08k stars 46 forks source link

Keystrokes are not working in the Morphic host #128

Closed girba closed 5 years ago

girba commented 5 years ago

The keystrokes behave erratically when in the Morphic host: for example sometimes, delete means Enter, or shift remains pressed.

This appears to be due to the fact that for moving to the native windows, we cleaned the adjustments needed to deal with the Morphic understanding of the keyboard.

Now, we need to see how to adapt to the Morphic host

syrel commented 5 years ago

By logging pressed keys in a morphic host and relying on keystroke event instead of keydown event for delete and backspace we were able to differentiate between them bloc-morphicdeletebackspace

syrel commented 5 years ago

Turned out by relying on keyValue instead of scanCode we can fix key sticking

bloc-morphkeystrokes