From 11d47b5b004645e334a5d8fb2f04d5ef8b6977fe Mon Sep 17 00:00:00 2001 From: dab246 Date: Fri, 31 Oct 2025 09:29:57 +0700 Subject: [PATCH] TF-3911 Fix `shortcutType` was not in use in `handleComposerShortcutAction` method --- .../handle_keyboard_shortcut_actions_extension.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/features/composer/presentation/extensions/handle_keyboard_shortcut_actions_extension.dart b/lib/features/composer/presentation/extensions/handle_keyboard_shortcut_actions_extension.dart index f6db97185..450ed3fd8 100644 --- a/lib/features/composer/presentation/extensions/handle_keyboard_shortcut_actions_extension.dart +++ b/lib/features/composer/presentation/extensions/handle_keyboard_shortcut_actions_extension.dart @@ -43,7 +43,11 @@ extension HandleKeyboardShortcutActionsExtension on ComposerController { void handleComposerShortcutAction(ComposerActionShortcutType shortcutType) { log('$runtimeType::handleComposerShortcutAction: 🔥 Shortcut triggered: $shortcutType'); - if (currentContext == null) return; - handleClickCloseComposer(currentContext!); + switch(shortcutType) { + case ComposerActionShortcutType.closeView: + if (currentContext == null) return; + handleClickCloseComposer(currentContext!); + break; + } } } \ No newline at end of file