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