Merge branch 'worktree-agent-ad4dacaa0da379451'
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -131,6 +131,26 @@ void main() {
|
||||
expect(actions, isNot(contains('Move between terminal tabs')));
|
||||
});
|
||||
|
||||
test('a browser outside macOS documents capturing its keys', () {
|
||||
List<String> actions(TargetPlatform platform, {required bool web}) => [
|
||||
for (final entry in KeyboardShortcutRegistry(
|
||||
platform: platform,
|
||||
web: web,
|
||||
).entries)
|
||||
entry.action,
|
||||
];
|
||||
const action = 'Send browser keys to the terminal';
|
||||
final entry = _entry(
|
||||
const KeyboardShortcutRegistry(platform: TargetPlatform.linux, web: true),
|
||||
action,
|
||||
);
|
||||
expect(entry.group, KeyboardShortcutGroup.terminal);
|
||||
expect(entry.caveat, contains('Alt+Backspace'));
|
||||
expect(entry.caveat, contains('hold Esc'));
|
||||
expect(actions(TargetPlatform.macOS, web: true), isNot(contains(action)));
|
||||
expect(actions(TargetPlatform.linux, web: false), isNot(contains(action)));
|
||||
});
|
||||
|
||||
test('Search documents field-scoped Control navigation', () {
|
||||
final registry = KeyboardShortcutRegistry(
|
||||
platform: TargetPlatform.macOS,
|
||||
|
||||
Reference in New Issue
Block a user