Files
pipelines/app/lib/features/settings/settings_keyboard_shortcuts_section.dart
T
alan 3b0da38f70 Redesign the keyboard shortcuts cheatsheet with fuzzy search
One fixed-size list of grouped cards: actions and notes on the leading
side, keys drawn as keycaps in an aligned trailing column that never ends
a line on a joining word. A search field, focused when Ctrl+? opens it,
filters fuzzily by action and keys (exactly by group and note) and
highlights the matched letters.
2026-11-12 15:02:11 +00:00

26 lines
800 B
Dart

import 'package:flutter/material.dart';
import '../../ui/adaptive/app_popups.dart';
import 'keyboard_shortcuts_help.dart';
import 'settings_keys.dart';
import 'settings_row.dart';
class SettingsKeyboardShortcutsSection extends StatelessWidget {
const SettingsKeyboardShortcutsSection({super.key});
@override
Widget build(BuildContext context) => SettingsRow(
key: SettingsKeys.keyboardShortcuts,
leading: const Icon(Icons.keyboard_outlined),
title: const Text(keyboardShortcutsLabel),
subtitle: const Text('See the shortcuts available on this platform.'),
chevron: true,
// On a phone, focusing the filter would cover the list with the keyboard.
onTap: () => showKeyboardShortcutsHelp(
context,
focusSearch: usesDesktopPopups(context),
),
);
}