Element-web: Shift-Delete doesn't copy to clipboard

Created on 13 Apr 2019  路  9Comments  路  Source: vector-im/element-web

Description

Shift-Delete should traditionally cut the text, putting it into the clipboard, same as Ctrl-X / Cmd-X. Ctrl-X works fine.

Steps to reproduce

  • type some text, copy it to clipboard, delete it
  • type something else, select it, cut with Shift-Del
  • paste

Log: not sent

Version information

  • Platform: web
  • Browser: Firefox Nightly
  • OS: Arch Linux
  • URL: self-hosted, 0.99.2-3
bug defect p2 upstream-issue

All 9 comments

@lnicola Where are you typing? In the message composer?

@jryans In this pane:

image

Thanks! My guess is that this is another variant of https://github.com/vector-im/riot-web/issues/7665 and will be fixed by https://github.com/vector-im/riot-web/issues/7697.

I'm confused. That sounds like a workaround, not a fix. Can't the existing editor handle Shift-Del just like it handles Ctrl-X? It's a basic editing shortcut, not something complex like an input method for a non-Latin script.

@lnicola could you try it here: https://www.slatejs.org/#/rich-text

If it doesn't work there then it is an issue upstream in the composer we use (slatejs) and not something we can work around without implementing something like #7697

Yeah, I just tried it, and it doesn't work. It's an upstream bug.

Fixed in the new composer (1.5.0?).

Was this page helpful?
0 / 5 - 0 ratings