suragch / mongol

Mongolian vertical script widgets for Flutter apps
https://pub.dev/packages/mongol
BSD 3-Clause "New" or "Revised" License
70 stars 15 forks source link

Using Actions and Shortcuts to Replace `RawKeyboard.instance.addListener(_handleKeyEvent)` #24

Closed Satsrag closed 1 year ago

Satsrag commented 2 years ago

Using RawKeyboard.instance.addListener in MongolRenderEditable caused the Focus widget to fail to intercept keyboard events.

In Flutter latest version, this is replaced with Actions and Shortcuts. Most of code are copied from Flutter source.

There are still have some logic to test and discuss:

suragch commented 1 year ago

Sorry again for my slow response time. I was traveling this last week. Hopefully this next week I'll be able to look at your work in more detail. Thank you!

Satsrag commented 1 year ago

@suragch In fact, I should thank you first. Thank you for your contribution!