Keep keys typed in a terminal out of app shortcuts
Terminals are marked as typing surfaces. While one has focus, the chat's "/ jumps to the composer", the Search tab's Escape, Ctrl+/, Ctrl+1…9 and Ctrl+Shift+arrow pane moves leave the key to the terminal, like they do for text fields.
This commit is contained in:
@@ -46,6 +46,7 @@ import 'server_endpoint.dart';
|
||||
import 'templates_destination.dart';
|
||||
import 'tab_locations.dart';
|
||||
import 'tab_locations_store.dart';
|
||||
import '../ui/input/keyboard_owner.dart';
|
||||
|
||||
/// The application's return-to-foreground policy for the shared socket.
|
||||
///
|
||||
@@ -482,10 +483,7 @@ class _PipelinesAppState extends State<PipelinesApp>
|
||||
}
|
||||
}
|
||||
|
||||
bool get _isEditingText {
|
||||
final focusContext = FocusManager.instance.primaryFocus?.context;
|
||||
return focusContext?.findAncestorWidgetOfExactType<EditableText>() != null;
|
||||
}
|
||||
bool get _isEditingText => primaryFocusTakesTyping();
|
||||
|
||||
/// A replaced socket drops the attention status baseline so the gap cannot
|
||||
/// replay a transition; the Runs list's next read reseeds the rows.
|
||||
|
||||
Reference in New Issue
Block a user