Keyboard hotkeys, i.e. press a given letter to fire the button's event, just like clicking on it would. The key can be defined for each button, like:Karai17 wrote:1) What do you mean by "shortcut function"?
Code: Select all
button:setHotkey( "e" )
Using love.textinput works wonders. I've made a lib which works with non-ascii characters before. Allows text input, word wrapping etc. Feel free to take anything from it you want to: PunchUI. The inputBlock and TextBlock might be interesting. Take care though, code isn't all that well structured.Karai17 wrote:2) That depends on LOVE's implementation of Unicode, but I absolutely agree.
When using these characters in Löve, you need to be careful not to cut them in part (it's two bytes long). That's what all the
Code: Select all
local letter = "[%z\1-\127\194-\244][\128-\191]*"
[quote="Karai17"}4) If you mean tab-indexing, I plan to allow for both defined (programmer decides which order objects are in) and undefined (system tries to smartly decide). Tab indexing should work for all four directions, not just a single linear path.[/quote]
I'm not sure we're talking about the same thing here, but indexes might work. However, tab-indexing sounds like tab (and shift-tab) take you to the next input box - that's not what I meant. I meant making the UI also work with keyboard input (interesting for buttons, maybe), to be able to build a keyboard-based menu. But this isn't important, I guess - just something which the perfect lib should maybe have.