mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #240] Backslash not accepted in InputField #184
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wolfsblu on GitHub (Feb 22, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/240
It seems the Inputfield does not allow backslashes (
\). I've tried entering one directly, using Alt-keycodes or pasting it in, but to no avail. Is this intended?Edit: Same goes for square and curly brackets.
@dguendisch commented on GitHub (Feb 22, 2019):
Works fine for me (backslash, curly braces, etc). Maybe you have an AcceptanceFunction defined like e.g. https://github.com/rivo/tview/blob/master/demos/inputfield/main.go#L15?
@wolfsblu commented on GitHub (Feb 22, 2019):
I just checked it again, interestingly it works on Linux, but not on Windows.
@dguendisch commented on GitHub (Feb 22, 2019):
I'm on mac, so that seems to work as well.
@rivo commented on GitHub (Mar 24, 2019):
Sorry for taking so long. I needed access to a Windows machine to reproduce it.
I believe this is now fixed. The problem was with the Alt key which prevented characters from being processed. Probably only users with German keyboards would have noticed this since the backslash (but also square and curly brackets) require hitting the "AltGr" key.
Fun fact: "AltGr" stands for "alternate graphic" and we can thank IBM for making us awkwardly bend our fingers to enter such common characters as
[,],{,}, or\. (And it's even worse on Macs where those characters are not even printed on the keyboard. I pity the one-handed person who has to enter a backslash character on a German Mac keyboard.)