Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(linux): Backspace doesn't work properly with text selection #8827

Open
ermshiperete opened this issue May 17, 2023 · 6 comments
Open

bug(linux): Backspace doesn't work properly with text selection #8827

ermshiperete opened this issue May 17, 2023 · 6 comments

Comments

@ermshiperete
Copy link
Contributor

Install and activate Khmer Angkor or IPA (SIL) keyboard.

Scenario 1

To reproduce

  • open gedit
  • type a few characters
  • select the last three characters selecting from right to left, i.e. starting at the end
  • press backspace

Expected behavior:

  • selection gets deleted

Actual behavior

  • character before the selection gets deleted, selection remains selected

Scenario 2

To reproduce

  • open gedit
  • type a few characters
  • select the last three characters selecting from left to right.
  • press backspace

Expected behavior

  • selection gets deleted

Actual behavior

  • last character gets deleted, selection consists now of two characters. To delete the entire selection, the user has to press backspace three times.

Environment

Tested on Ubuntu 22.04 and 23.04 with X11 and Wayland. Keyman 17 alpha.

@bharanidharanj
Copy link

Tested on Ubuntu 22.04 with X11 and Wayland along with Keyman 16.0.139 stable build and I was able to reproduce it.

@mcdurdin
Copy link
Member

This seems like a fairly important issue to fix.

@ermshiperete
Copy link
Contributor Author

ermshiperete commented May 23, 2023

This is only happening in apps that support surrounding text, but not e.g. in Chrome.

#7870 sounds similar on the Windows side.

Seems to be a problem in Core.

@ermshiperete ermshiperete self-assigned this May 23, 2023
@ermshiperete ermshiperete added the core/ Keyman Core label May 23, 2023
@ermshiperete
Copy link
Contributor Author

ermshiperete commented May 24, 2023

Tests to verify eventual fix:

All tests in gedit. Use "IPA (SIL)" keyboard.

  • TEST_SELECTION_BS_EBA:

    • Open gedit
    • Switch to "IPA (SIL)" keyboard
    • Type abcdef
    • click after f
    • press key (cursor left) three times to select def
    • press Backspace
    • verify that def is deleted and the remaining text is abc
  • TEST_SELECTION_BS_ABE:

    • Open gedit
    • Switch to "IPA (SIL)" keyboard
    • Type abcdef
    • click after c
    • press key (cursor right) three times to select def
    • press Backspace
    • verify that def is deleted and the remaining text is abc
  • TEST_SELECTION_BS_KEY_EBA:

    • Open gedit
    • Switch to "IPA (SIL)" keyboard
    • Type abcndef
    • click after f
    • press key (cursor left) three times to select def
    • press Backspace
    • press > key
    • verify that def is deleted and the remaining text is abcŋ
  • TEST_SELECTION_BS_KEY_ABE:

    • Open gedit
    • Switch to "IPA (SIL)" keyboard
    • Type abcndef
    • click after n
    • press key (cursor right) three times to select def
    • press Backspace
    • press > key
    • verify that def is deleted and the remaining text is abcŋ
  • TEST_SELECTION_REPLACE_EBA:

    • Open gedit
    • Switch to "IPA (SIL)" keyboard
    • Type abcndef
    • click after f
    • press key (cursor left) three times to select def
    • press > key
    • verify that def is deleted and the remaining text is abcŋ
  • TEST_SELECTION_REPLACE_ABE:

    • Open gedit
    • Switch to "IPA (SIL)" keyboard
    • Type abcndef
    • click after n
    • press key (cursor right) three times to select def
    • press > key
    • verify that def is deleted and the remaining text is abcŋ

@mcdurdin mcdurdin self-assigned this Apr 29, 2024
@mcdurdin mcdurdin modified the milestones: A18S3, A18S4 May 26, 2024
@ermshiperete
Copy link
Contributor Author

Moved to A18S16 where according to the project plan text selection bugs are scheduled

@ermshiperete ermshiperete modified the milestones: A18S4, A18S16 Jun 14, 2024
@ermshiperete
Copy link
Contributor Author

Moving to A18S24 where the rest of the Linux text selection bugs currently are

@ermshiperete ermshiperete modified the milestones: A18S16, A18S24 Nov 25, 2024
@ermshiperete ermshiperete modified the milestones: A18S24, 19.0 Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants