feat(ui): show custom action on context menu (#1353)
* fix(ui): Show message custom actions on desktop context menu. * fix(ui): don't handle keyboard shortcut when callback is null. Co-authored-by: Salvatore Giordano <[email protected]>
This commit is contained in:
co-authored by
Salvatore Giordano
parent
1e9e942c46
commit
9369defe11
+5
-4
@@ -35,10 +35,11 @@ class KeyboardShortcutRunner extends StatelessWidget {
|
||||
return FocusableActionDetector(
|
||||
autofocus: true,
|
||||
shortcuts: {
|
||||
enterKeySet: EnterKeyIntent(),
|
||||
escapeKeySet: EscapeKeyIntent(),
|
||||
rightArrowKeySet: RightArrowKeyIntent(),
|
||||
leftArrowKeySet: LeftArrowKeyIntent(),
|
||||
if (onEnterKeypress != null) enterKeySet: EnterKeyIntent(),
|
||||
if (onEscapeKeypress != null) escapeKeySet: EscapeKeyIntent(),
|
||||
if (onRightArrowKeypress != null)
|
||||
rightArrowKeySet: RightArrowKeyIntent(),
|
||||
if (onLeftArrowKeypress != null) leftArrowKeySet: LeftArrowKeyIntent(),
|
||||
},
|
||||
actions: {
|
||||
EnterKeyIntent: CallbackAction(
|
||||
|
||||
Reference in New Issue
Block a user