Commit 7446242
committed
fix: remove password visibility button key event handling
Removed the event filter that was intercepting Enter/Return key presses
on the password visibility toggle button. The button now uses default Qt
button behavior for key events instead of custom handling. This change
simplifies the code and ensures consistent behavior with standard Qt
button interactions.
The previous implementation specifically handled Enter/Return key
presses to trigger button clicks when the button was not set as default.
This custom logic has been removed to allow the button to use Qt's
built-in key event handling mechanisms.
Influence:
1. Test password visibility toggle functionality with mouse clicks
2. Verify Enter/Return key behavior in password fields
3. Check that button focus and activation work as expected
4. Test overall password edit widget behavior in forms
5. Verify no regression in password visibility toggling
fix: 移除密码可见性按钮的按键事件处理
移除了拦截密码可见性切换按钮上 Enter/Return 按键的事件过滤器。现在按钮
使用 Qt 默认的按钮行为来处理按键事件,而不是自定义处理。这一更改简化了代
码,并确保与标准 Qt 按钮交互行为的一致性。
之前的实现专门处理了 Enter/Return 按键,以便在按钮未设置为默认按钮时触
发按钮点击。这一自定义逻辑已被移除,以允许按钮使用 Qt 内置的按键事件处理
机制。
Influence:
1. 测试通过鼠标点击切换密码可见性的功能
2. 验证密码字段中 Enter/Return 键的行为
3. 检查按钮焦点和激活功能是否按预期工作
4. 测试表单中密码编辑控件的整体行为
5. 验证密码可见性切换功能没有回归问题
PMS: BUG-3414931 parent 4cffd2b commit 7446242
1 file changed
+0
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 123 | | |
134 | 124 | | |
135 | 125 | | |
| |||
0 commit comments