Skip to content

Commit 7871bfe

Browse files
committed
Update Picviewer CE+.user.js
1 parent 27aafc1 commit 7871bfe

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// @description:zh-TW 線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存
1111
// @description:pt-BR Poderosa ferramenta de visualização de imagens on-line, que pode pop-up/dimensionar/girar/salvar em lote imagens automaticamente
1212
// @description:ru Мощный онлайн-инструмент для просмотра изображений, который может автоматически отображать/масштабировать/вращать/пакетно сохранять изображения
13-
// @version 2022.9.4.2
13+
// @version 2022.9.4.3
1414
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD////29vbKysoqKioiIiKysrKhoaGTk5N9fX3z8/Pv7+/r6+vk5OTb29vOzs6Ojo5UVFQzMzMZGRkREREMDAy4uLisrKylpaV4eHhkZGRPT08/Pz/IfxjQAAAAgklEQVQoz53RRw7DIBBAUb5pxr2m3/+ckfDImwyJlL9DDzQgDIUMRu1vWOxTBdeM+onApENF0qHjpkOk2VTwLVEF40Kbfj1wK8AVu2pQA1aBBYDHJ1wy9Cf4cXD5chzNAvsAnc8TjoLAhIzsBao9w1rlVTIvkOYMd9nm6xPi168t9AYkbANdajpjcwAAAABJRU5ErkJggg==
1515
// @namespace https://github.com/hoothin/UserScripts
1616
// @homepage http://hoothin.com
@@ -21529,26 +21529,26 @@ ImgOps | https://imgops.com/#b#`;
2152921529
event.stopPropagation();
2153021530
event.preventDefault();
2153121531
globalFuncEnabled = !globalFuncEnabled;
21532+
return true;
2153221533
}else if((!gallery || (!gallery.shown && !gallery.minimized)) && prefs.floatBar.globalkeys.type == "press"){
2153321534
globalFuncEnabled = !globalFuncEnabled;
21535+
return true;
2153421536
}
21535-
return true;
21536-
}else{
21537-
if (!prefs.floatBar.keys.enable){
21538-
return false;
21539-
}
21537+
}
21538+
if (!prefs.floatBar.keys.enable){
21539+
return false;
21540+
}
2154021541

21541-
if (floatBar && floatBar.shown && isKeyDownEffectiveTarget(event.target)) {
21542-
Object.keys(prefs.floatBar.keys).some(function(action) {
21543-
if (action == 'enable') return;
21544-
if (key == prefs.floatBar.keys[action]) {
21545-
floatBar.open(event, action);
21546-
event.stopPropagation();
21547-
event.preventDefault();
21548-
return true;
21549-
}
21550-
})
21551-
}
21542+
if (floatBar && floatBar.shown && isKeyDownEffectiveTarget(event.target)) {
21543+
Object.keys(prefs.floatBar.keys).some(function(action) {
21544+
if (action == 'enable') return;
21545+
if (key == prefs.floatBar.keys[action]) {
21546+
floatBar.open(event, action);
21547+
event.stopPropagation();
21548+
event.preventDefault();
21549+
return true;
21550+
}
21551+
})
2155221552
}
2155321553
}
2155421554

@@ -22277,7 +22277,7 @@ ImgOps | https://imgops.com/#b#`;
2227722277
}
2227822278

2227922279
// 注册按键
22280-
document.addEventListener('keydown', keydown, false);
22280+
document.addEventListener('keydown', keydown, true);
2228122281

2228222282
function openPrefs() {
2228322283
GM_config.open();

0 commit comments

Comments
 (0)