Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capability to set UI.Input as focused by default #965

Open
maluoi opened this issue Apr 18, 2024 · 0 comments
Open

Capability to set UI.Input as focused by default #965

maluoi opened this issue Apr 18, 2024 · 0 comments
Labels
ui An issue related to StereoKit's built-in UI system.

Comments

@maluoi
Copy link
Collaborator

maluoi commented Apr 18, 2024

Describe the feature

On some occasions, it can be nice to have a UI.Input element focus by default. Not sure if this applies well to elements other than UI.Input yet, so it could be either specific to UI.Input, or a more general focus setting API. SK currently has no keyboard traversal, so the concept of keyboard focus is unique to UI.Input so far. If keyboard UI traversal happens in the future, the generic focus API could be preferred.

An example use-case

A rename button that spawns a window with just a UI.Input.
A login window that pops up with username/password fields.

In both these cases, what the user should do next is clear, and requiring the user to select the Input is somewhat redundant. Popping the keyboard right away could streamline the process.

@maluoi maluoi added the ui An issue related to StereoKit's built-in UI system. label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui An issue related to StereoKit's built-in UI system.
Projects
None yet
Development

No branches or pull requests

1 participant