-
Notifications
You must be signed in to change notification settings - Fork 89
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
ghcup tui shows docs on ctrl-c #875
Comments
Changing the key mapping will break lots of users workflows. You can change it yourself: Line 33 in d759535
We could also detect control keys and not trigger any of the actions if they are in combination with such. |
Ah, so it is looking for the key, regardless of modifiers. Can you make it ignore them if ctrl is pressed at the same time. Going to the changelog is great, I just have a problem with |
The code is here: ghcup-hs/app/ghcup/BrickMain.hs Line 315 in d759535
PRs welcome. |
Basically, we're ignoring the modifier: https://hackage.haskell.org/package/vty-5.38/docs/Graphics-Vty-Input-Events.html#t:Event ghcup-hs/app/ghcup/BrickMain.hs Lines 328 to 331 in d759535
Should be something like (VtyEvent (Vty.EvKey key [])) ->
case find (\(key', _, _) -> key' == key) (keyHandlers kb) of
Nothing -> put st
Just (_, _, handler) -> handler st |
I decided I could live with it when I got
having installed the deps from ghcup-hs/.github/workflows/bootstrap.yaml Line 41 in d759535
|
This unfortunately regressed: ghcup-hs/app/ghcup/BrickMain.hs Lines 651 to 652 in 456200e
|
I am reviewing it |
When I am in
ghcup tui
, I instinctively hitctrl-c
to quit.And I am always surprised to be taken to a web browser opened to the docs of whatever my cursor is on at the time.
The legend at the bottom does not mention this possibility, perhaps it should, bound to something sane like
d
The text was updated successfully, but these errors were encountered: