Preserve editing shortcuts outside multi-pane layouts
This commit is contained in:
@@ -47,6 +47,7 @@ class _ChatWorkspaceState extends State<ChatWorkspace> {
|
||||
|
||||
bool _key(KeyEvent event) {
|
||||
if (!widget.shortcutsEnabled ||
|
||||
widget.controller.paneCount <= 1 ||
|
||||
!_focus.hasFocus ||
|
||||
event is! KeyDownEvent) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user