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
{{ message }}
Repository navigation
On web platforms, I want to receive a key event via RawKeyboardListener #52656
I need to receive a key event to customize some action on edit control. On web platform, a key event does not occur. :(
(It's working well with RawKeyListener on Android platform)
I need RawKeyListener on EditableText for the following use-case,
Support short-cut key on edit control for several case
(1) Popup dialog for recommanded text list,
(2) Reset to default text status,
(3) Change input dialog layout(normal user or expert user)
I want to implement powerful rich editor based on flutter. so I need text editing service and keyEvent from Engine.
Proposal
After some investigating, I found it's intented operation by the engine's pull-reqest #13699.
I think it's better that the engine send the key event and the key event is ignored on editable.dart / RenderEdtiable / _handleKeyEvent function like following,
finalbool isWeb = keyEvent.data isRawKeyEventDataWeb;
if (isWeb) {
// On web platforms, The key should be ignored because the cursor has already movedreturn;
}
It solves original #44133 issue and I can receive key events on the Web, such as Android platform.
I modified engine and flutter code and it's working well now as expected.(RawKeyListener with EditableText is working well and duplicated keyboard action on input conttol on web doesn't occur)
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
yjbanov commentedon Mar 19, 2020
/cc @mdebbar can you please triage and look at the PRs?
yjbanov commentedon Mar 25, 2020
/cc @mariamhas this issue came up again in our conversation today.
Ignore key events on edit control on web platform (#52656) (#52661)
mdebbar commentedon Apr 1, 2020
Framework and engine PRs were merged (#52661 and flutter-team-archive/engine#17242).
lock commentedon Apr 25, 2020
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.