Fixed isModifiedKeyboardEvent order of operations. (#4866)
https://github.com/SillyTavern/SillyTavern/pull/4819#discussion_r2595641856 Co-authored-by: user <user@exmaple.com>
This commit is contained in:
@@ -970,10 +970,10 @@ export function initRossMods() {
|
||||
|
||||
function isModifiedKeyboardEvent(event) {
|
||||
return (event instanceof KeyboardEvent &&
|
||||
event.shiftKey ||
|
||||
(event.shiftKey ||
|
||||
event.ctrlKey ||
|
||||
event.altKey ||
|
||||
event.metaKey);
|
||||
event.metaKey));
|
||||
}
|
||||
|
||||
$(document).on('keydown', async function (event) {
|
||||
|
||||
Reference in New Issue
Block a user