Moves the attach-file shortcut into the component

This commit is contained in:
Josh Perez 2021-10-15 14:51:58 -04:00 committed by GitHub
parent ab1c31b64f
commit fc425304fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 50 additions and 48 deletions

View file

@ -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 (