We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 197948d commit 0294a72Copy full SHA for 0294a72
src/views/login/index.vue
@@ -139,16 +139,7 @@ export default {
139
},
140
methods: {
141
checkCapslock({ shiftKey, key } = {}) {
142
- if (key && key.length === 1) {
143
- if (shiftKey && (key >= 'a' && key <= 'z') || !shiftKey && (key >= 'A' && key <= 'Z')) {
144
- this.capsTooltip = true
145
- } else {
146
- this.capsTooltip = false
147
- }
148
149
- if (key === 'CapsLock' && this.capsTooltip === true) {
150
151
+ this.capsTooltip = key && key.length === 1 && ((shiftKey && (key >= 'A' && key <= 'Z')) || (!shiftKey && (key >= 'A' && key <= 'Z')))
152
153
showPwd() {
154
if (this.passwordType === 'password') {
0 commit comments