by inshadows · 4y ago · 0 comments
EDIT: GUIs had tradition of having mnemonics in menus and sometimes even on buttons. That is until smart people started removing it in the name of the design.
EDIT: Still, will check it out, though I will try to hack my way into adding mnemonics to buttons. Because arrow/tab navigation is f-ing stupid.
About "wasting pixels"... What if I (and many others) like the aesthetic and simplicity? There is a sort of magic in never having to leave your terminal emulator. Most frameworks are still keyboard-centered, as many of them don't even have mouse support to replace it with.
Edit: Thank you for your interest though! If you have a syntactically neat way to do the things you talked about feel free to raise an issue and I'll get to it as it comes up.
So something like
ptg.KeyboardButton("Help")
or ptg.KeyboardButton("Action", binding=ptg.keys.CTRL_B)
These would create a button with a label such as "[H]elp" and "[B] Action", and pressing `CTRL_` + their button would activate them. If idea is fine implementation should really not take much time.Edit: Regardless, it is now pushed on GH. Will be included in next version, thank you both for the suggestion!