text icon indicating copy to clipboard operation
text copied to clipboard

Ctrl+Backspace inserts new item into unordered list with Firefox

Open PatrickJosh opened this issue 1 year ago • 2 comments

Describe the bug Since the update to Nextcloud 29, pressing Ctrl+Backspace in an unordered list behaves weirdly. When pressing it with more than one word left in the current line/item, it behaves normally and deletes the word before the cursor. However, when pressing it with only one word left in the current line, it inserts a new item below and focusses this item. However, it only happens with Firefox, not with Chromium; there, it behaves normally. Have a look at the following video to get a better understanding:

https://github.com/nextcloud/text/assets/32456639/3c010557-5768-4067-8b5e-3ccc27e177ab

In the video, I only press Ctrl+Backspace, nothing else.

To Reproduce Steps to reproduce the behavior:

  1. Have an unordered list
  2. Press Ctrl+Backspace with only one item left in the line

Expected behavior The last remaining word is deleted as well.

Screenshots See video above.

Server details:

  • Nextcloud version: 29.0.1
  • PHP Version: 8.3
  • Database: mariadb Ver 15.1 Distrib 10.5.23-MariaDB, for Linux (x86_64) using EditLine wrapper

Client details:

  • OS: Fedora Linux 40
  • Browser: Firefox 125
  • Device: Laptop
Logs

Nextcloud log (data/nextcloud.log)

Probably not necessary; if it is, just tell me.

Browser log

console-export-2024-5-27_18-3-41.txt

PatrickJosh avatar May 27 '24 16:05 PatrickJosh

I can reproduce this on latest Text main branch, but not in a Tiptap sandbox.

mejo- avatar Jun 12 '24 13:06 mejo-

From #5962 :

Let me put some references here as well: https://github.com/ProseMirror/prosemirror-view/blob/master/CHANGELOG.md#1337-2024-05-31 https://github.com/ProseMirror/prosemirror-view/commit/8c9a7d25021ce8e99d03a63c7fb7033a524fd4db

Was bumped in tiptap upstream for the upcoming 2.5.0 release with https://github.com/ueberdosis/tiptap/commit/747985b3a7617e35702a6dab4ecc87c76610204b

juliusknorr avatar Jul 05 '24 04:07 juliusknorr

This has indeed been resolved by the library update. Closing.

PatrickJosh avatar Feb 04 '25 21:02 PatrickJosh