Skip to content

second user cursor deletes text, prevents newline and inserts username as text #5103

@kolAflash

Description

@kolAflash

Describe the bug
@juliushaertl This is a follow up for regressions since >= 26.0, already described in #5102 and #4100

Since Nextcloud 26.0, there is strange behaviour if a user cursor is present.

 

To Reproduce
A webbrowser (Firefox-120.0.1 on Debian-12) is having the file opened simultaneously. But I'm doing nothing on the webbrowser client. It just has the file opened.

Please see the attached videos for behaviour and reproduction. (recorded on Android)
Mind the Return and Backspace keys flashing when I press them.

VIDEOS https://github.com/nextcloud/text/assets/3355089/310995e5-b0eb-4efa-bceb-10b47388fc3b
NC-26.0.9_adds-username-as-text.mp4

 

Expected behavior
Text should not be deleted on pressing Return. (related #1927)
Adding a newline (Return) at a user cursor position should work.
Username should not be added as text when pressing backspace at a user cursor position.

(slightly related #5102)

 

Server details:
Tested with two different servers.

  • server 1
    • Nextcloud version: 26.0.9
    • PHP Version: 8.2 (Debian-12)
    • Database: MariaDB 10.11.4 (Debian-12)
  • server 2
    • Nextcloud version: 27.1.1.0
    • PHP Version: unknown
    • Database: unkonwn

 

Client details:
Tested with two different Android devices.

  • Device: Fairphone 3+
    • Nextcloud app: 3.26.0
    • OS: /e/OS-12.3-s (LineageOS-19 based Android-12)
  • Device: Google Pixel 4a
    • Nextcloud app: 3.26.0
    • OS: Android-13

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions