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

Pop-ups that occur during typing can actioned from keypress unintentionally #58

Closed
bjeanes opened this issue Aug 27, 2020 · 4 comments
Closed

Comments

@bjeanes
Copy link

bjeanes commented Aug 27, 2020

I suppose this is also a usability suggestion, like #28.

I find that a few times per day, OpenSnitch will open a pop-up while I am in the middle of typing and some key press (perhaps space bar, but it happens so quickly I am not sure) will submit the form on the pop-up (I'm not sure with which action, but probably accept)

I'm not sure the ideal solution here because obviously some keyboard control here is highly desirable...

Some ideas:

  • Don't steal KB focus
  • Don't respond to KB input for a small delay
  • (my favourite) Require a modifier such as Alt (not commonly pressed during fast typing) to be used for various actions.
@gustavo-iniguez-goya
Copy link
Owner

Hi @bjeanes !

I like the 2nd approach. I think it's useful to answer the dialog using the KB so the 1st option discarded, and I'm not sure about the 3rd option. Using emacs or vim you can be using so many combinations of keys that would be hard to choose one :)

Another option: press the TAB key to jump to the allow/deny button.

@bjeanes
Copy link
Author

bjeanes commented Sep 25, 2020

TAB or delay both seem like decent options. I am not sure I have a preference b obviously TAB is pressed during typing code but I think since this just moves focus on the inputs it's not as annoying as accidentally making a policy choice.

@abhishekbhakat
Copy link

Can there be an option to set the hotkey as the user wishes ?

gustavo-iniguez-goya added a commit that referenced this issue Oct 14, 2020
Sometimes you can deny/allow a connection unintentionally while typing.
Now the focus is set to the "+" button, and you can jump to the deny or
allow button with the arrow keys.

Issue #58.
@gustavo-iniguez-goya
Copy link
Owner

I haven't found a way to set the focus to a widget which is not a button, maybe I'm missing something here.
So instead of moving around using TABs, now the "+" button has the focus, and you just have to use the arrow keys to move to the allow or deny button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants