mail icon indicating copy to clipboard operation
mail copied to clipboard

"Delete" keyboard shortcut does not work if anything inside the mail was clicked or marked

Open jancborchardt opened this issue 3 years ago • 3 comments

Steps to reproduce

  1. Open any email
  2. Mark some text or click a link
  3. Press "Delete" on the keyboard

Expected behavior

The mail gets deleted.

Actual behavior

Nothing happens.

Mail app version

Latest as deployed on cloud.nextcloud.com

Mailserver or service

No response

Operating system

No response

PHP engine version

No response

Web server

No response

Database

No response

Additional info

No response

jancborchardt avatar Jun 29 '22 11:06 jancborchardt

the message

Let me guess, HTML message?

ChristophWurst avatar Jun 29 '22 11:06 ChristophWurst

@ChristophWurst yep, only happens for HTML messages, not for normal ones – just tested on cloud.nc. Is it possible to still catch the shortcut even if the focus is inside the HTML message?

jancborchardt avatar Aug 20 '24 09:08 jancborchardt

Is it possible to still catch the shortcut even if the focus is inside the HTML message?

It's an iframe and we sandbox it because we don't trust the HTML. We might be able to use postMessage to communicate between iframe and the main window, and tunnel events this way. This is too big of a task for a drive-by fix -> planning

ChristophWurst avatar Aug 20 '24 09:08 ChristophWurst