-
Notifications
You must be signed in to change notification settings - Fork 173
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
OnKeyDown event triggered twice #4
Comments
Ubuntu 16.04 ldd far2l |
interesting that i'm using approx same config without any problems) anyway I've commited some blind fix - please check if it improved situation.. |
Nope, it didn't solve the problem. OnKeyDown: 0 13d 0 |
please add event.GetTimestamp() and see if duplicate keydowns have it same or not:
|
OnKeyDown: 0 13b 0 27936778 |
check now |
Well, the cursor of course is not jumping over items now, that's an improvement. However every other key (enter, esc, letters) is now needed to be pressed twice to have an effect. |
Funny, curse of double-ESC from ncurses reached me :) |
The alpha-numerical input worked fine (I think, because it's being taken from OnChar event), escape and enter also did work fine. Only the arrow keys were problematic. Here is trace of last lifecycle: It's also interesting, that it's not every time I need to press esc/enter twice. The numpad enter works fine from the the start on, until I press 'normal' enter. |
I've made further investigation. It seams, that the described behavior somehow depends on profile settings. (I've created another and tested far2l, there were no double OnKeyDown events). |
may be you have some software that may interfere with keyboard input? Or some gnome extension. |
Well here is a minor breakthrough. The only software I could think of, which could interfere with the input was ibus. A wild guess of killing ibus-x11 process running from my user gave positive results. I receive no more duplicate events. |
I'm also have IBus and Russian/English layout and no repro |
The last fix seams to fix the problem. |
closing |
OnKeyDown event is triggered twice, which causes cursor to jump over files and menu entries.
OnKeyDown: 0 13d
OnKeyDown: 0 13d
OnChar: 0 13d
OnKeyUp: 0 13d
OnKeyDown: 0 13d
OnKeyDown: 0 13d
OnChar: 0 13d
OnKeyUp: 0 13d
OnKeyDown: 0 13b
OnKeyDown: 0 13b
OnChar: 0 13b
OnKeyUp: 0 13b
OnKeyDown: 0 13b
OnKeyDown: 0 13b
OnChar: 0 13b
OnKeyUp: 0 13b
and so on.
The text was updated successfully, but these errors were encountered: