Moves the attach-file shortcut into the component
This commit is contained in:
parent
ab1c31b64f
commit
fc425304fc
5 changed files with 50 additions and 48 deletions
|
@ -1565,18 +1565,7 @@ export async function startApp(): Promise<void> {
|
|||
// Send in expanded composer - handled by component
|
||||
|
||||
// Attach file
|
||||
if (
|
||||
conversation &&
|
||||
commandOrCtrl &&
|
||||
!shiftKey &&
|
||||
(key === 'u' || key === 'U')
|
||||
) {
|
||||
conversation.trigger('attach-file');
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
// hooks/useKeyboardShorcuts useAttachFileShortcut
|
||||
|
||||
// Remove draft link preview
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue