feat: Implement paste shortcut and remove popup menu option
taken from https://github.com/krille-chan/fluffychat/pull/2775
This commit is contained in:
parent
bd9ca7c9b3
commit
bf21b7f42c
4 changed files with 15 additions and 31 deletions
|
|
@ -171,21 +171,6 @@ class ChatInputRow extends StatelessWidget {
|
|||
contentPadding: const EdgeInsets.all(0),
|
||||
),
|
||||
),
|
||||
if (!PlatformInfos.isMobile)
|
||||
PopupMenuItem(
|
||||
value: AddPopupMenuActions.pasteImage,
|
||||
child: ListTile(
|
||||
leading: CircleAvatar(
|
||||
backgroundColor:
|
||||
theme.colorScheme.onPrimaryContainer,
|
||||
foregroundColor:
|
||||
theme.colorScheme.primaryContainer,
|
||||
child: const Icon(Icons.content_paste),
|
||||
),
|
||||
title: Text(L10n.of(context).pasteImage),
|
||||
contentPadding: const EdgeInsets.all(0),
|
||||
),
|
||||
),
|
||||
PopupMenuItem(
|
||||
value: AddPopupMenuActions.image,
|
||||
child: ListTile(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue