修改安全键盘拉起显示左右键问题

Signed-off-by: zhangsaiyang <zhangsaiyang@huawei.com>
This commit is contained in:
zhangsaiyang 2024-06-19 14:52:48 +08:00
parent c323a8ae35
commit 688f94a020

View File

@ -27,6 +27,7 @@ struct InputAttribute {
static const int32_t PATTERN_PASSWORD = 0x00000007;
static const int32_t PATTERN_PASSWORD_NUMBER = 0x00000008;
static const int32_t PATTERN_PASSWORD_SCREEN_LOCK = 0x00000009;
static const int32_t PATTERN_NEWPASSWORD = 0x0000000b;
int32_t inputPattern = 0;
int32_t enterKeyType = 0;
int32_t inputOption = 0;
@ -45,7 +46,7 @@ struct InputAttribute {
bool GetSecurityFlag()
{
return inputPattern == PATTERN_PASSWORD || inputPattern == PATTERN_PASSWORD_SCREEN_LOCK ||
PATTERN_PASSWORD_NUMBER == inputPattern;
PATTERN_PASSWORD_NUMBER == inputPattern || PATTERN_NEWPASSWORD == inputPattern;
}
bool operator==(const InputAttribute &info) const