Skip to content

Commit aa1d000

Browse files
committed
25.12.27 Some fix
1 parent 59629e5 commit aa1d000

3 files changed

Lines changed: 17 additions & 12 deletions

File tree

Debug/script/index.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -469,13 +469,19 @@ window.addEventListener("mousedown", function (ev) {
469469
}
470470
});
471471

472-
document.addEventListener("MSFullscreenChange", function () {
473-
FullscreenChanged(document.msFullscreenElement != null, document.msFullscreenElement == document.body);
474-
});
472+
if (window.chrome) {
473+
document.addEventListener("webkitfullscreenchange", function () {
474+
FullscreenChanged(document.fullscreenElement != null, document.fullscreenElement == document.body);
475+
});
475476

476-
document.addEventListener("webkitfullscreenchange", function () {
477-
FullscreenChanged(document.fullscreenElement != null, document.fullscreenElement == document.body);
478-
});
477+
document.addEventListener("dragenter", function () {
478+
WebBrowser.DropMode = 1;
479+
});
480+
} else {
481+
document.addEventListener("MSFullscreenChange", function () {
482+
FullscreenChanged(document.msFullscreenElement != null, document.msFullscreenElement == document.body);
483+
});
484+
}
479485

480486
Init = async function () {
481487
te.Data.MainWindow = $;
@@ -503,9 +509,7 @@ Init = async function () {
503509
ui_.Show = 1;
504510
Resize();
505511
AddEvent("BrowserCreatedEx", "setTimeout(async function () { SetWindowAlpha(await GetTopWindow(), 255); }, 99);");
506-
setTimeout(function () {
507-
WebBrowser.DropMode = 1;
508-
}, 999);
512+
WebBrowser.DropMode = 1;
509513
ClearEvent("Layout");
510514
ClearEvent("Load");
511515
g_.ShowError = true;

Debug/script/sync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ g_.arError = api.CreateObject("Array");
6969

7070
AboutTE = function (n) {
7171
if (n == 0) {
72-
return te.Version < 20251220 ? te.Version : 20251222;
72+
return te.Version < 20251220 ? te.Version : 20251227;
7373
}
7474
if (n == 1) {
7575
const v = AboutTE(0);
@@ -3708,7 +3708,7 @@ FolderMenu = {
37083708
$.RemoveSubMenu(hParent, wID);
37093709
$.RunEvent1("FolderMenuCreated", hMenu, FolderItem, hParent);
37103710
if (/^object$|^function$/.test(typeof cb)) {
3711-
api.Invoke(cb, [hMenu, FolderItem, hParent]);
3711+
cb(hMenu, FolderItem, hParent);
37123712
}
37133713
}
37143714
}

Debug/script/sync1.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2142,6 +2142,7 @@ AddEvent("InvokeCommand", function (ContextMenu, fMask, hwnd, Verb, Parameters,
21422142

21432143
te.OnDragEnter = function (Ctrl, dataObj, pgrfKeyState, pt, pdwEffect) {
21442144
let hr = E_NOTIMPL;
2145+
WebBrowser.DropMode = 1;
21452146
const dwEffect = pdwEffect[0];
21462147
const en = "DragEnter";
21472148
const eo = eventTE[en.toLowerCase()];
@@ -3608,7 +3609,7 @@ AutocompleteThread = function () {
36083609
ar.push(Items.Item(i).Path);
36093610
}
36103611
}
3611-
api.Invoke(UI.Autocomplete, [ar.join("\t"), pid.Path]);
3612+
UI.Autocomplete(ar.join("\t"), pid.Path);
36123613
}
36133614
}
36143615

0 commit comments

Comments
 (0)