mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
Use && to eliminate if-statement (#3558)
This commit is contained in:
parent
dece0c2bfb
commit
8608465864
@ -77,11 +77,7 @@ export default {
|
|||||||
const matched = match(e, action.patterns);
|
const matched = match(e, action.patterns);
|
||||||
|
|
||||||
if (matched) {
|
if (matched) {
|
||||||
if (el._hotkey_global) {
|
if (el._hotkey_global && match(e, targetReservedKeys)) return;
|
||||||
if (match(e, targetReservedKeys)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
Loading…
Reference in New Issue
Block a user