mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
690 B
690 B
DATA STRUCTURE
[
[main Window Objects],
[popup Window Objects]
]
Window Object
{
"isFocused": false,
"inputProcessor": (this, inputEvent) => { ... },
"drawFrame": (this) => { ... },
"drawContents": (this) => { ... },
"width": 20,
"height": 12,
"x": 1,
"y": 3,
"title": undefined
}
BEHAVIOUR
- Key event is parsed
- If key is Tab, move focus to the next Window Object within the current window
- If not, pass the event to the currently focused Window Object
No key combination will allow navigating between windows e.g. Tabbing on the question popup will just loop through the Ok/Cancel buttons, until the buttons are pressed.