-
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
Key binding doesn't seem to be working for runes #60
Comments
hmmm SetKeybinding requires a handler function Also is your code public? Might be able to have a look at it |
Unfortunately my code is not public so I cannot share. Yes the create_update_titleBuff(c) is my handler function. The code for that func is of the form
With that code, I would expect my Title field to show 'aaaaaaa' as I type, but instead it just displays what I typed as if there were no key bindings at all and it was just a normal editable field |
The issue is in
Essentially this was designed to ignore keybinds when typing in an editable view. I'm thinking about making a bool called |
Can you test my PR #62 |
I was using jroimartin/gocui for a while and recently migrated to this fork.
When I type in one field of my gui, I intend to update another field according to what I wrote. I use a keybinding for this, effectively for each alphanumeric character I type.
for _, c := range "{};=<>()[]'\"/\\-+:abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" { g.SetKeybinding("Title", c, gocui.ModNone, create_update_titleBuff(c)) }
create_update_titleBuff writes the appropriate characters to each field I'm looking to edit
This no longer seems to be working. There is no error when setting the keybinding, but the create_update_titleBuff() does not seem to actually be called -- the other functionality within that function isn't happening. Instead, it appears as if I'm just typing into the Title field.
The text was updated successfully, but these errors were encountered: