MCPcopy Index your code
hub / github.com/hoothin/UserScripts / checkPreview

Function checkPreview

Picviewer CE+/dist.user.js:26461–26471  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

26459 }
26460
26461 function checkPreview(e){
26462 if (isConfigOpen) return false;
26463 let selStr;
26464 try {
26465 selStr = !selectionClientRect && selectionStr;
26466 }catch(e){}
26467 if (selStr && selStr != "\n") return false;
26468 let keyActive=(prefs.floatBar.globalkeys.type == "hold" && checkGlobalKeydown(e)) ||
26469 (prefs.floatBar.globalkeys.type == "press" && globalFuncEnabled);
26470 return prefs.floatBar.globalkeys.invertInitShow?!keyActive:keyActive;
26471 }
26472
26473 var untilMoveTimer, moveHandler, uniqueImgWinInitX, uniqueImgWinInitY;
26474 function waitUntilMove(target, callback) {

Callers 3

globalMouseoverHandlerFunction · 0.70
keyupFunction · 0.70
initFunction · 0.70

Calls 1

checkGlobalKeydownFunction · 0.70

Tested by

no test coverage detected