You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any window must be able to start monitoring keystrokes, and keep track of active child windows that any keyboard commands are then passed to.
e.g.
var scores = window.OpenBox("scores", 50,20);
scores.Run();
The default keystroke to move between active windows that have tab sequence number is the Tab key, but this can be overridden. When used in conjuction with multi-inputs (form input) then tab no longer moves between individual inputs, that will be left to the arrow keys or enter key.
Windows that can be tracked are windows open will be static Open or Split methods.
Pressing tab moves between active windows.
Active window is indicated by theme, default theme will be double line for active window, brightWhite on black, and inactive will be gray on black single Line.
Example
var parentWindow = new Window();
var teamA = parentWindow.SplitLeft("team A");
var teamB = parentWindow.splitRight("team B");
var getNames = GetNameInputs(); // returns an array of ReadLine();
teamA.Add(getNames);
teamB.Add(getNames);
parentWindow.Run();
Calling Run, will cause first window to have focus, and all keyboard events are sent to the controls inside that window. Pressing tab, will switch focus between the two window objects, teamA and teamB, and will cause each window to change their style indicating selection.
The text was updated successfully, but these errors were encountered:
goblinfactory
changed the title
Window Keyboard manager - pass keyboard events to child windows
Window Keyboard event handler - pass keyboard events to child windows
Jan 24, 2020
Any window must be able to start monitoring keystrokes, and keep track of active child windows that any keyboard commands are then passed to.
e.g.
The default keystroke to move between active windows that have tab sequence number is the Tab key, but this can be overridden. When used in conjuction with multi-inputs (form input) then tab no longer moves between individual inputs, that will be left to the arrow keys or enter key.
Example
Calling Run, will cause first window to have focus, and all keyboard events are sent to the controls inside that window. Pressing tab, will switch focus between the two window objects, teamA and teamB, and will cause each window to change their style indicating selection.
The text was updated successfully, but these errors were encountered: