Skip to content

Commit

Permalink
Deprecated notice
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit committed Feb 28, 2024
1 parent c20fb6f commit 9403cf6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,8 @@ class _EditableFieldState extends State<_EditableField> {

return Focus(
focusNode: focusNode,
onKey: (node, key) {
if (key.data.physicalKey == PhysicalKeyboardKey.escape) {
onKeyEvent: (node, key) {
if (key.physicalKey == PhysicalKeyboardKey.escape) {
focusNode.unfocus();
return KeyEventResult.handled;
}
Expand Down

0 comments on commit 9403cf6

Please sign in to comment.