mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibGUI: Add PasswordBox
This patch adds a PasswordBox. At the moment, it's simply a TextBox with it's substitution code point set to '*', and the undo and redo actions disabled.
This commit is contained in:
parent
de67d86696
commit
9f0ce2dc81
Notes:
sideshowbarker
2024-07-18 11:13:57 +09:00
Author: https://github.com/MaxWipfli
Commit: 9f0ce2dc81
Pull-request: https://github.com/SerenityOS/serenity/pull/8248
2 changed files with 15 additions and 0 deletions
|
@ -72,4 +72,12 @@ void TextBox::add_input_to_history(String input)
|
|||
m_history_index++;
|
||||
}
|
||||
|
||||
PasswordBox::PasswordBox()
|
||||
: TextBox()
|
||||
{
|
||||
set_substitution_code_point('*');
|
||||
undo_action().set_enabled(false);
|
||||
redo_action().set_enabled(false);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue