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

Unshaky with Punto Swithcer cause space bar deleting #62

Open
ghost opened this issue Apr 17, 2019 · 10 comments
Open

Unshaky with Punto Swithcer cause space bar deleting #62

ghost opened this issue Apr 17, 2019 · 10 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Apr 17, 2019

I use Punto Switcher because I have 2 keyboard layouts. This application helps me by hotkey change keyboard layout of the latest word, like from en to ru and otherwise. Very convenient if you forgot to change the layout. I have 60ms in Unshaky for spacebar and it deletes spacebar after when I'm using Punto. Only spacebar, with others everything is fine. It's not a big deal, but I always have to add additional spacebar, that's so annoying.

To Reproduce

  1. Set ms in Unshaky for the space bar
  2. Install Punto Switcher
  3. Write the word with the spacebar after
  4. Hit the punto's hotkey
  • macOS version: 10.14.4
  • Unshaky version : 0.4.6
@aahung aahung added the bug Something isn't working label Apr 19, 2019
@aahung
Copy link
Owner

aahung commented Apr 19, 2019

Can you use the Unshaky's debug window to capture the events? Also, can you try to turn on "ignore external keyboard" in configuration. Maybe the key events sent by Punto Switcher is not associated with the internal keyboard.

@aahung
Copy link
Owner

aahung commented Apr 22, 2019

possible duplicate with #54

@ghost
Copy link
Author

ghost commented Apr 24, 2019

External keyboard option didn't help.

Here is when I wrote a word with space after and pressed Option (punto switcher hotkey):

1556113592.859066 Key( 58| 49|         Space|         0| 60) E(10)
1556113592.979099 Key( 58| 49|         Space|         0| 60) E(11)
1556113593.649640 Key( 58| 49|         Space|         0| 60) E(10)
1556113593.652340 Key( 58| 49|         Space|         0| 60) E(11)
1556113593.659952 Key( 58| 49|         Space|         0| 60) E(10) DISMISSED
1556113593.661564 Key( 58| 49|         Space|         0| 60) E(11) DISMISSED

And even if I press Option after word without spacebar after - I see in debug window that spacebar was pressed anyway (punto switcher bug?). So because of this Unshaky thinks that it's a double key press.

@aahung
Copy link
Owner

aahung commented Apr 24, 2019

so you expect all spaces are there right?

@ghost
Copy link
Author

ghost commented Apr 24, 2019

Yep, but I understand that it's not Unshaky issue. Maybe there can be something to avoid this case?

@aahung
Copy link
Owner

aahung commented Apr 24, 2019

The two spaces are pretty close (< 8ms) and in the latest version of Unshaky, two presses are very close (< 5ms) will be whitelisted since it is likely to be other software-generated key presses. I might increase it to 10ms and it should fix your problem.

1556113593.652340 Key( 58| 49|         Space|         0| 60) E(11)
1556113593.659952 Key( 58| 49|         Space|         0| 60) E(10) DISMISSED

@ghost
Copy link
Author

ghost commented Apr 24, 2019

Sounds good, I can test it

@aahung
Copy link
Owner

aahung commented Jun 5, 2019

@Fedor1991 did it work>?

@ghost
Copy link
Author

ghost commented Jun 5, 2019

@aahung not very, it works in 30% cases, example when it was false positive

1559762189.880007 Key( 40| 49| Space| 0| 40) E(10)
1559762189.958238 Key( 40| 49| Space| 0| 40) E(11)
1559762192.689738 Key( 58| 49| Space| 0| 40) E(10)
1559762192.691964 Key( 58| 49| Space| 0| 40) E(11)
1559762192.699074 Key( 58| 49| Space| 0| 40) E(10) DISMISSED
1559762192.699239 Key( 58| 49| Space| 0| 40) E(11) DISMISSED
1559762193.435401 Key( 58| 49| Space| 0| 40) E(10)
1559762193.435478 Key( 58| 49| Space| 0| 40) E(11)
1559762193.440729 Key( 58| 49| Space| 0| 40) E(10) DISMISSED
1559762193.440842 Key( 58| 49| Space| 0| 40) E(11) DISMISSED
1559762194.310761 Key( 58| 49| Space| 0| 40) E(10)
1559762194.310852 Key( 58| 49| Space| 0| 40) E(11)
1559762194.315477 Key( 58| 49| Space| 0| 40) E(10)
1559762194.315586 Key( 58| 49| Space| 0| 40) E(11)

@ghost ghost closed this as completed Jun 5, 2019
@ghost ghost reopened this Jun 5, 2019
@aahung
Copy link
Owner

aahung commented Jun 5, 2019

looks like that workaround did not work well since the interval is not consistent...

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

1 participant