Fixed `isModifiedKeyboardEvent` order of operations. (#4866) https://github.com/SillyTavern/SillyTavern/pull/4819#discussion_r2595641856 Co-authored-by: user <user@exmaple.com>
Signed| @@ -970,10 +970,10 @@ export function initRossMods() { | ||
| 970 | 970 | |
| 971 | 971 | function isModifiedKeyboardEvent(event) { |
| 972 | 972 | return (event instanceof KeyboardEvent && |
| 973 | 973 | (event.shiftKey || |
| 974 | 974 | event.ctrlKey || |
| 975 | 975 | event.altKey || |
| 976 | 976 | event.metaKey)); |
| 977 | 977 | } |
| 978 | 978 | |
| 979 | 979 | $(document).on('keydown', async function (event) { |