()
| 14 | const eKey = keyCombination.caseSensitive ? e.key : e.key.toLocaleLowerCase(); |
| 15 | |
| 16 | const isCombo = () => { |
| 17 | if (ctrl && alt) return eKey === key; |
| 18 | if (ctrl) return eKey === key; |
| 19 | if (alt) return eKey === key; |
| 20 | return false; |
| 21 | }; |
| 22 | |
| 23 | if (isCombo()) { |
| 24 | e.preventDefault(); |