mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 21:20:31 +00:00
perf: 限制截图快捷键
This commit is contained in:
parent
d5998efd91
commit
01266ef4c4
@ -74,7 +74,7 @@ export default {
|
||||
|
||||
onKeydown({key, keyCode}) {
|
||||
if (keyCode !== 8) {
|
||||
key = key && key.length === 1 ? key.trim().toUpperCase() : ""
|
||||
key = /^[A-Za-z0-9]?$/.test(key) ? key : ""
|
||||
if (key) {
|
||||
this.formData.screenshot_key = key
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user