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] Occasional “F22” key appears, and won't disappear. #136

Open
EvenZHAnglll opened this issue May 18, 2023 · 4 comments
Open

[Bug] Occasional “F22” key appears, and won't disappear. #136

EvenZHAnglll opened this issue May 18, 2023 · 4 comments
Labels
🐛 bug Something isn't working

Comments

@EvenZHAnglll
Copy link

Describe the bug
There is a "F22" key shown in the bar, and won't disappear.

Version: v1.0.6

To Reproduce
After trying, I found a way to reproduce exactly. It's related with WeChat client on Windows.

  1. run the keyviz
  2. login WeChat windows client
  3. "F22" key shows up

Expected behavior
Regardless of whether it is a bug caused by WeChat app, the “F22” key should not appear. Because it is not a key.

Screenshots
The "F22" appear.

Screenshot 2023-05-18 082958

Desktop:

  • Windows 11
@EvenZHAnglll
Copy link
Author

I did some research and found that some old-fashioned keyboards do indeed have an F22 key. F22 is an actual key.
But now, general keyboards only have F1 to F12 and do not have F13 to F24.

The reason for this bug seems to be due to WeChat, not keyviz.

But this frequently occurring F22 is really annoying. Maybe an option can be added to not display F13 to F24 Key.

@mulaRahul mulaRahul added the 🐛 bug Something isn't working label May 23, 2023
@mulaRahul
Copy link
Owner

Indeed old keyboards had keys from F13 to F24 and there is keymapping for the same as well -

final Map<String, String> functionKeys = {
'F1': 'F1',
'F2': 'F2',
'F3': 'F3',
'F4': 'F4',
'F5': 'F5',
'F6': 'F6',
'F7': 'F7',
'F8': 'F8',
'F9': 'F9',
'F10': 'F10',
'F11': 'F11',
'F12': 'F12',
'F13': 'F13',
'F14': 'F14',
'F15': 'F15',
'F16': 'F16',
'F17': 'F17',
'F18': 'F18',
'F19': 'F19',
'F20': 'F20',
'F21': 'F21',
'F22': 'F22',
'F23': 'F23',
'F24': 'F24',
};

The same have been reported in #102 as well. And maybe it's related to #56, #88.

But as mentioned, modern keyboards don't have F13-F24. I should opt out the same. And also set a mechanism that detects visualizations that doesn't disappear and remove the same after an interval.

@leumasme
Copy link

But as mentioned, modern keyboards don't have F13-F24.

Just as a sidenote, F13-F24 is often used in laptops where for example something like Shift/FN+F[x] may trigger a keypress for F[x+12] (or other way around if fn-lock is toggled), so they are not completely obsolete.

@singularity2000
Copy link

The same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants