Skip to content

Commit 52dd0ff

Browse files
committed
25.12.30 Some fix
1 parent aa1d000 commit 52dd0ff

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Debug/script/sync.js

Lines changed: 1 addition & 1 deletion
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 : 20251227;
72+
return te.Version < 20251220 ? te.Version : 20251230;
7373
}
7474
if (n == 1) {
7575
const v = AboutTE(0);

Debug/script/sync1.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,9 +1780,11 @@ te.OnMouseMessage = function (Ctrl, hwnd, msg, wParam, pt) {
17801780
}
17811781
if (msg != WM_MOUSEMOVE) {
17821782
te.Data.cmdKeyF = false;
1783-
if (!/^Chrome|^Internet/i.test(api.GetClassName(hwnd))) {
1784-
if (/^Chrome|^Internet/i.test(api.GetClassName(api.GetFocus()))) {
1785-
InvokeUI("FocusElement");
1783+
if (msg == WM_LBUTTONDOWN || msg == WM_RBUTTONDOWN || msg == WM_MBUTTONDOWN || msg == WM_XBUTTONDOWN) {
1784+
if (!/^Chrome|^Internet/i.test(api.GetClassName(hwnd))) {
1785+
if (/^Chrome|^Internet/i.test(api.GetClassName(api.GetFocus()))) {
1786+
InvokeUI("FocusElement");
1787+
}
17861788
}
17871789
}
17881790
}

0 commit comments

Comments
 (0)