Skip to content

Commit 11d47b5

Browse files
dab246hoangdat
authored andcommitted
TF-3911 Fix shortcutType was not in use in handleComposerShortcutAction method
1 parent 0bd60ea commit 11d47b5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/features/composer/presentation/extensions/handle_keyboard_shortcut_actions_extension.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ extension HandleKeyboardShortcutActionsExtension on ComposerController {
4343

4444
void handleComposerShortcutAction(ComposerActionShortcutType shortcutType) {
4545
log('$runtimeType::handleComposerShortcutAction: 🔥 Shortcut triggered: $shortcutType');
46-
if (currentContext == null) return;
47-
handleClickCloseComposer(currentContext!);
46+
switch(shortcutType) {
47+
case ComposerActionShortcutType.closeView:
48+
if (currentContext == null) return;
49+
handleClickCloseComposer(currentContext!);
50+
break;
51+
}
4852
}
4953
}

0 commit comments

Comments
 (0)