Closed adrian-moisa closed 7 months ago
RawKeyboardListener( focusNode: FocusNode(), onKey: (event) { if (event.data.isControlPressed && event.character == 'b') { if (_controller! .getSelectionStyle() .attributes .keys .contains('bold')) { _controller!.formatSelection( AttributeM.clone(AttributeM.bold, null), ); } else { _controller!.formatSelection(AttributeM.bold); } } }, child: _editor(), ),