Skip to content

Strange character inserted when the app is called (₢) #195

Open

Description

@BrunoGeorgevich

Specs

OS: Windows 11 24H2 (26100.4061)
App Version: 7.1

Issue

Every time I call the app shortcut, a strange character (₢) is inserted in place of the text that is selected. Even if I do not select any text, the character is still being inserted. I don't know if this issue is specific to my PC or if there is an issue with the app. Currently, my shortcut is alt+', but I've already changed it to other shortcuts, and the character insertion persists.

What can i do to solve this issue?

Video

20250521-1243-24.3058092.mp4

Activity

  1. BrunoGeorgevich commented on May 21, 2025

    @BrunoGeorgevich
    Author

    It seems when we call the program, you copy the selected text, right? Also, when I hit AltGr + C, the ₢ appears. So maybe the shortcut that has been triggered is AltGr + C, then Ctrl + C to copy the selected text content. I've tested with the English (EN-US) keyboard, and the ₢ char is not inserted. So maybe the problem is related to my keyboard layout, which is PT-BR (Brazilian Portuguese). What do you think?

  2. BrunoGeorgevich commented on May 21, 2025

    @BrunoGeorgevich
    Author

    Apparently, the problem is the function press_ctrl_c() from Windows_and_Linux/WritingToolApp.py. Maybe you should add a sleep before press_ctrl_c() calling the function, and not just after, to guarantee that if the user uses alt as a shortcut, the alt_gr key is not pressed, considering that the alt_gr key is the same thing as pressing ctrl and alt together: alt_gr = ctrl + alt. So, possibly pynput is computing the alt_gr key because I use alt + ' as a shortcut, and the time between when I release the alt and when the ctrl + c simulation is triggered is too short. What do you think?

  3. AbdelrhmanElbaz commented on Jun 9, 2025

    @AbdelrhmanElbaz

    The issue persists in the Arabic layout. Initially, it was believed to affect both English and Arabic layouts; however, further testing revealed that the problem is isolated to non-English layouts. As a temporary workaround, the keyboard layout is being switched to English before using the shortcut. It is suspected that this issue is not specific to Brazilian Portuguese or Arabic, but rather affects all non-English layouts.
    #183

  4. AbdelrhmanElbaz commented on Jun 9, 2025

    @AbdelrhmanElbaz

    Could you please confirm whether the implemented solution has resolved the shortcut functionality issue across various non-English keyboard layouts?

    5989341

  5. theJayTea commented on Oct 25, 2025

    @theJayTea
    Owner

    Thanks for the debussing and contribution, @BrunoGeorgevich. In 2 weeks from now, I'll be able to start work on Writing Tools again, and I'll take a deeper look at this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions