Add show/hide feature for passwords

This commit is contained in:
jpirnay
2026-04-12 23:16:47 +02:00
parent 714e389678
commit 32df69ea80
2 changed files with 71 additions and 21 deletions
+4 -1
View File
@@ -14,7 +14,7 @@ struct KeyDef {
char secondary;
};
enum SpecialKeyType { SpecShift, SpecMode, SpecSpace, SpecDel, SpecOk };
enum SpecialKeyType { SpecShift, SpecMode, SpecReveal, SpecSpace, SpecDel, SpecOk };
class KeyboardEntryActivity : public Activity {
public:
@@ -37,6 +37,7 @@ class KeyboardEntryActivity : public Activity {
std::string text;
size_t maxLength;
bool isPassword;
bool passwordVisible = false;
ButtonNavigator buttonNavigator;
@@ -147,6 +148,8 @@ class KeyboardEntryActivity : public Activity {
int getContentRowCount() const;
int getTotalRowCount() const;
int getBottomKeyCount() const;
SpecialKeyType getBottomSpecialKey(int index) const;
bool isBottomRow(int row) const;
char getSelectedChar() const;
char getAlternativeChar() const;