eclipse.platform.swt icon indicating copy to clipboard operation
eclipse.platform.swt copied to clipboard

'Delete' key does not have repeat function under Wayland

Open nicolamori opened this issue 1 year ago • 7 comments

Describe the bug In a Wayland session, holding the delete key does not produce repeated delete action in any editor. Other keys work fine. In other text element, e.g. search box, the delete key repeat functionality works.

To Reproduce

  • Start Eclipse in a Wayland environment without setting the GDK_BACKEND env variable to x11
  • Open an editor, write some text, put back the cursor to beginning of text then press and hold the delete key
  • Verify that only the first character is deleted

Expected behavior Characters are continued to be deleted as long as the key is held.

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • [ ] All OS
    • [ ] Windows
    • [x] Linux
    • [ ] macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc) ArchLinux with Plasma desktop and Wayland session

  2. JRE/JDK version OpenJDK 21.u35 (ArchLinux package jre-openjdk 21.u35-8 from official repositories)

Version since Verified with 4.30.0, first reported on 4.10 (see below)

Workaround (or) Additional context Setting GDK_BACKEND=x11 fixes the issue Original bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=544518

nicolamori avatar Dec 14 '23 09:12 nicolamori

I am having this issue on wayland under void linux on eclipse 2023-09

NotAlexNoyle avatar Dec 14 '23 16:12 NotAlexNoyle

I confirm this issue on Ubuntu 23.10, Eclipse CDT 2023-12, with OpenJDK 21.0.1+12. Del key repeat works well in a Xorg session.

This is the last problem preventing me from switching to Wayland.

phileimer avatar Dec 17 '23 17:12 phileimer

Where should that GDK_BACKEND=x11 be set? In eclipse.ini? Or where?

boaks avatar Dec 23 '23 12:12 boaks

Where should that GDK_BACKEND=x11 be set? In eclipse.ini? Or where?

It should be set as an environment variable. See this AskUbuntu question and answers for a few different ways to set it: https://askubuntu.com/q/144968/6537

guss77 avatar Dec 23 '23 12:12 guss77

I'm experiencing the same bug under X11 in dbeaver. (See https://github.com/dbeaver/dbeaver/issues/22581.) Obviously, setting GDK_BACKEND=x11 doesn't help. Assuming it's the same bug, this bug is not specific to Wayland. The other possibility is two different bugs both breaking the delete key in the same way.

ChthonVII avatar Feb 02 '24 01:02 ChthonVII

I'm seeing this same issue on Fedora 39 and also saw it on F38 as well. Unfortunately, if I set GDK_BACKEND=x11 before starting eclipse, then I see this weird keyboard behavior such that, as I type characters every now and then the cursor will backup and delete the last character or two that I just typed, and then re-type them and then proceed like normal. I don't end up losing typed characters, but it is really annoying and just unacceptable to run that way.

padamstx avatar Apr 25 '24 21:04 padamstx

I'm observing same bug as described above. Debian 12 bookworm. Wayland. Eclipse version: 2024-12 (4.34.0), Build 20241128.

culturedcait avatar Feb 09 '25 12:02 culturedcait