Git Product home page Git Product logo

Comments (16)

fdw avatar fdw commented on July 18, 2024

--delay affects the time between keystrokes, so I guess when the typer starts you are releasing shift and it's only completely done after the second key was typed?

Removing the delay was added in #52, so I wouldn't want to remove it completely. We could make it configurable, but I'd prefer some solution that works around the problem. A xdotool keyup shift_l beforehand maybe?

from rofi-rbw.

nim65s avatar nim65s commented on July 18, 2024

I should have mention that no, I clearly do not touch the Shift key at all: I run rofi-rbw -t password -a type --typer xdotool in a shell loop, only pressing Enter to select the first entry each time, and looking at the result.

xdotool keyup shift_l doesn't help, nor run(["xdotool", "keyup", "Shift_L", "Shift_R", "Alt_L", "Alt_R"]) before and after the main xdotool command in type_characters().

from rofi-rbw.

nim65s avatar nim65s commented on July 18, 2024

Also, I did try with different delay settings, and in my case it looks like the issue is still triggered very often at 5, but I can't reproduce it at 6.

from rofi-rbw.

fdw avatar fdw commented on July 18, 2024

That helps, thank you very much! πŸ™‚

Can you maybe share some "password" that triggers this for you? Which of the first letters should be capitalized and which should be lower case?

from rofi-rbw.

nim65s avatar nim65s commented on July 18, 2024

Sure, IΒ ran pwgen, and got the first result with lower cases first: nei8daiK. Then, selecting this test one on rofi with for i in (seq 10); rofi-rbw -t password -a type --typer xdotool; end, I get:

nei8daiKNEI8daiKnei8daiKNEI8daiKnei8daiKnei8daiKNEI8daiKNEI8daiKNEI8daiKNEI8daiK

The first is OK, but the second is not.

(this is fish syntax)

from rofi-rbw.

nim65s avatar nim65s commented on July 18, 2024

Oh, this might be because there is a digit after the 3 first lowercases (which gets wrongly uppercased sometimes here), and on my keyboard layout, shift is required for digits. After a setxkbmap us, I have a correct 10/10 nei8daiKnei8daiKnei8daiKnei8daiKnei8daiKnei8daiKnei8daiKnei8daiKnei8daiKnei8daiK.

So my usual layout is setxkbmap fr bepo, but setxkbmap fr also trigger the issue.

from rofi-rbw.

fdw avatar fdw commented on July 18, 2024

Okay, that is interesting. I'm wondering if it's because of the number (but then shift would have to be applied too early) or because of the K at the end. Can you reproduce it without a number, just an upper case letter at the end?

What would your preferred solution be? I think the arguments from #52 are still valid, but rofi-rbw not working is also not acceptable. I'm leaning towards a small delay of 5 or 6, but what do you think?

from rofi-rbw.

polyzen avatar polyzen commented on July 18, 2024

Changing it to 6 seems to have made a difference for me. There are still occasions where I have to retry pasting.

from rofi-rbw.

fdw avatar fdw commented on July 18, 2024

You have the same problem of xdotool upper casing some characters? Do you also use a non-US keymap?

Does a larger delay than 6 work better for you?

from rofi-rbw.

polyzen avatar polyzen commented on July 18, 2024

You have the same problem of xdotool upper casing some characters? Do you also use a non-US keymap?

Was that the issue? I use a US keymap.

Does a larger delay than 6 work better for you?

Have not tried yet.

from rofi-rbw.

fdw avatar fdw commented on July 18, 2024

I thought the problem was related to the keymap, like @nim65s wrote:

After a setxkbmap us, I have a correct 10/10

At least, I have no other explanation why xdotool would reproducibly upper case the first letters characters by itself.

However, if you have the same problem, but with a US keymap, it has to be something different πŸ˜•

from rofi-rbw.

polyzen avatar polyzen commented on July 18, 2024

I thought the problem was related to the keymap, like @nim65s wrote:

After a setxkbmap us, I have a correct 10/10

At least, I have no other explanation why xdotool would reproducibly upper case the first letters characters by itself.

However, if you have the same problem, but with a US keymap, it has to be something different πŸ˜•

Could just be human error on my part ┐('~`οΌ›)β”Œ

from rofi-rbw.

fdw avatar fdw commented on July 18, 2024

Okay, so is the original problem (some letters are upper cased by rofi-rbw) still happening for someone? If so, is a delay of 5 or 6 enough?

Or is there some other solution?

from rofi-rbw.

polyzen avatar polyzen commented on July 18, 2024

IIRC I had tried 5 and found 6 to work better.

from rofi-rbw.

fdw avatar fdw commented on July 18, 2024

I've pushed something to main where you can define the delay with --typing-key-delay. It's still 0 by default, but you can change it if you experience problems.

Could you please test it and tell me if it works?

from rofi-rbw.

nim65s avatar nim65s commented on July 18, 2024

I just removed the comments of lines "--delay" and "0" on the setup of mine that was having the issue, and I can't reproduce it anymore, so I can't properly test main, sorry.
But I think 714e8fc is a nice idea, and I will use it if I get this issue again, thanks a lot !

I think we can close this issue, then, unless somebody else currently can reproduce the issue, and report that 714e8fc is not working.

from rofi-rbw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.