We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f48c259 commit 99a344eCopy full SHA for 99a344e
src/views/login/index.vue
@@ -138,17 +138,9 @@ export default {
138
// window.removeEventListener('storage', this.afterQRScan)
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
+ checkCapslock(e) {
+ const { key } = e
+ this.capsTooltip = key && key.length === 1 && (key >= 'A' && key <= 'Z')
152
153
showPwd() {
154
if (this.passwordType === 'password') {
0 commit comments