code_field icon indicating copy to clipboard operation
code_field copied to clipboard

Use onKeyEvent instead of onKey in FocusNode

Open alexeyinkin opened this issue 3 years ago • 0 comments

Here we use onKey to set the listener on FocusNode: https://github.com/BertrandBev/code_field/blob/66d4e56f14bc0073cd967149a929c6b670ffc74c/lib/src/code_field/code_field.dart#L121

The doc says it is a legacy property and will be deprecated in the future. The recommended alternative is onKeyEvent.

alexeyinkin avatar Jul 19 '22 12:07 alexeyinkin