mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-18 09:08:08 +08:00
Add support for password for input element. (#158)
This fixes: https://github.com/ArthurSonzogni/FTXUI/issues/139 CC:@Creapermann
This commit is contained in:
@@ -50,6 +50,9 @@ struct InputOption {
|
||||
/// Called when the user presses enter.
|
||||
std::function<void()> on_enter = [] {};
|
||||
|
||||
/// Obscure the input content using '*'.
|
||||
bool password = false;
|
||||
|
||||
Ref<int> cursor_position = 0;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user