-
Notifications
You must be signed in to change notification settings - Fork 39
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
[BUG] Parse() doesn't parse Alt, Shift modifiers and converts Ctrl to a key #91
Comments
@KoditkarVedant You are correct the codes doesn't seem to support this tough i think you expect this kind of input to work. You are welcome to add support for this! |
@mjarkk What are your views on using the |
I think we should not use it to keep the amount of dependencies low. |
@mjarkk how many new dependencies does it add? |
I'm not really sure what is the purpose of the I think that parsing of keybinds should be done in Anyway, just my two cents :) Regarding the original question, I'm with @mjarkk on this... there is no need to add another dependency on a file which was extracted from this library and put into separate library just to add it back to this library by a another dependency. |
For better portability across different frameworks, it would be nice to have some reference A demo that allows to test different keys and combination would be useful. Especially for different language layouts. |
I see, for such a case maybe the Nevertheless, you can't really make dependency in this library on |
Ideally both should be merged into https://pkg.go.dev/golang.org/x/term instead of adding another layer to the cake. At least key codes and handling logic for them could be universal. |
Hmmm... I guess we are talking about two different things here.
On the other hand So these are really totally different libraries and that idea is not applicable here at all. But this is probably going already a bit off-topic. If you have a specific use case in mind which would bring some light to the problem you see, I think it might be good to open a new issue and describe it there exactly with specific examples. |
Parse() fails process
Alt+
andShift+
combinations. See the code below.This outputs,
Another strange behavior is that https://pkg.go.dev/github.com/awesome-gocui/gocui#Parse should return modifier separately from
Key,
but it forCtrl+
there is no Modifier and it is mixed into the key.To Reproduce
https://play.golang.org/p/UPWMipkgA9U
Expected behavior
The text was updated successfully, but these errors were encountered: