@@ -69,14 +69,14 @@ class _SuperEditorHardwareKeyHandlerState extends State<SuperEditorHardwareKeyHa
69
69
}
70
70
71
71
KeyEventResult _onKeyPressed (FocusNode node, KeyEvent keyEvent) {
72
- if (! node.hasPrimaryFocus) {
73
- // The editor is focused, but doesn't have primary focus. For example:
74
- // - The editor has a node with a focused widget.
75
- // - There is a focused widget somewhere else in the tree which shares
76
- // focus with the editor, typically a popover toolbar.
77
- // Don't run any of the editor key handlers and let the event bubble up.
78
- return KeyEventResult .ignored;
79
- }
72
+ // if (!node.hasPrimaryFocus) {
73
+ // // The editor is focused, but doesn't have primary focus. For example:
74
+ // // - The editor has a node with a focused widget.
75
+ // // - There is a focused widget somewhere else in the tree which shares
76
+ // // focus with the editor, typically a popover toolbar.
77
+ // // Don't run any of the editor key handlers and let the event bubble up.
78
+ // return KeyEventResult.ignored;
79
+ // }
80
80
editorKeyLog.info ("Handling key press: $keyEvent " );
81
81
ExecutionInstruction instruction = ExecutionInstruction .continueExecution;
82
82
int index = 0 ;
@@ -100,6 +100,7 @@ class _SuperEditorHardwareKeyHandlerState extends State<SuperEditorHardwareKeyHa
100
100
@override
101
101
Widget build (BuildContext context) {
102
102
return Focus (
103
+ debugLabel: 'SuperEditorHardwareKeyHandler' ,
103
104
focusNode: _focusNode,
104
105
onKeyEvent: widget.keyboardActions.isEmpty ? null : _onKeyPressed,
105
106
autofocus: widget.autofocus,
0 commit comments