[GH-ISSUE #1122] [Bug] Single quote shown as comma when applying keystrokes #844

Closed
opened 2026-02-26 09:32:50 +03:00 by kerem · 6 comments
Owner

Originally created by @reduckted on GitHub (Jun 19, 2022).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1122

Originally assigned to: @NickeManarin on GitHub.

Describe the bug
When showing keystrokes, if you press the single quote key ( ' ) key, it is shown as a comma ( , ).

To Reproduce
Steps to reproduce the behavior:

  1. Start recording
  2. Press '
  3. Stop the recording
  4. Apply keystrokes

Expected behavior
The key ' is shown as '.

Screenshots
keystrokes

Desktop (please complete the following information):

  • OS: Windows 10 (10.0.19044 N/A Build 19044)
  • Version 2.37

Additional context
N/A

Originally created by @reduckted on GitHub (Jun 19, 2022). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1122 Originally assigned to: @NickeManarin on GitHub. **Describe the bug** When showing keystrokes, if you press the single quote key ( `'` ) key, it is shown as a comma ( `,` ). **To Reproduce** Steps to reproduce the behavior: 1. Start recording 2. Press `'` 3. Stop the recording 4. Apply keystrokes **Expected behavior** The key `'` is shown as `'`. **Screenshots** ![keystrokes](https://user-images.githubusercontent.com/10321525/174504284-67bbf931-10dd-4d05-888d-0496cc9d7e28.gif) **Desktop (please complete the following information):** - OS: Windows 10 (10.0.19044 N/A Build 19044) - Version 2.37 **Additional context** N/A
kerem 2026-02-26 09:32:50 +03:00
Author
Owner

@jfbueno commented on GitHub (Jun 21, 2022):

@reduckted What keyboard layout are you using? I'm not able to reproduce this using my configuration. I'm also in Windows 10 build 19044

<!-- gh-comment-id:1162083727 --> @jfbueno commented on GitHub (Jun 21, 2022): @reduckted What keyboard layout are you using? I'm not able to reproduce this using my configuration. I'm also in Windows 10 build 19044
Author
Owner

@reduckted commented on GitHub (Jun 22, 2022):

"English (United States)" (the QWERTY layout). I'm not sure if it helps, but GetKeyboardLayoutName() reports it as 00000409.

<!-- gh-comment-id:1162667814 --> @reduckted commented on GitHub (Jun 22, 2022): "English (United States)" (the QWERTY layout). I'm not sure if it helps, but [`GetKeyboardLayoutName()`](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getkeyboardlayoutnamew) reports it as `00000409`.
Author
Owner

@reduckted commented on GitHub (Jun 22, 2022):

I just tried a few other things. I can also reproduce it with the the on-screen keyboard in Windows.
osk

And it also occurs when editing the key strokes. Here's a gif of me pressing ; then ' then . then ,:
edit

<!-- gh-comment-id:1162682285 --> @reduckted commented on GitHub (Jun 22, 2022): I just tried a few other things. I can also reproduce it with the the on-screen keyboard in Windows. ![osk](https://user-images.githubusercontent.com/10321525/174954495-5c4a2193-e88e-4172-b228-b17c62c73b8b.gif) And it also occurs when editing the key strokes. Here's a gif of me pressing `;` then `'` then `.` then `,`: ![edit](https://user-images.githubusercontent.com/10321525/174955308-8fd5fd66-d04e-421b-b106-8be5c219da81.gif)
Author
Owner

@NickeManarin commented on GitHub (Jun 22, 2022):

Hi, that's weird.
For me, it's displaying correctly the ' and , chars.

112

<!-- gh-comment-id:1163058917 --> @NickeManarin commented on GitHub (Jun 22, 2022): Hi, that's weird. For me, it's displaying correctly the `'` and `,` chars. ![112](https://user-images.githubusercontent.com/14798947/175033123-5d5e2d36-0c7f-4a8c-a20b-06b48a3fd5bc.png)
Author
Owner

@jfbueno commented on GitHub (Jun 22, 2022):

@NickeManarin I just found out what's happening and opened a PR with the fix. We can discuss further details there.

@reduckted Can you build ScreenToGif using that branch, repeat your test cases and get back in this thread?

<!-- gh-comment-id:1163519458 --> @jfbueno commented on GitHub (Jun 22, 2022): @NickeManarin I just found out what's happening and opened a PR with the fix. We can discuss further details there. @reduckted Can you build ScreenToGif using that branch, repeat your test cases and get back in this thread?
Author
Owner

@reduckted commented on GitHub (Jun 22, 2022):

@jfbueno I just tried running your branch and can confirm that it fixed this bug. 🎉

<!-- gh-comment-id:1163742509 --> @reduckted commented on GitHub (Jun 22, 2022): @jfbueno I just tried running your branch and can confirm that it fixed this bug. 🎉
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#844
No description provided.