Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit84ea1a2

Browse files
committed
JSTextUI update
1 parentba167cc commit84ea1a2

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed
-2.14 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20241123180856
1+
20241128160622
-2.14 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20241123180856
1+
20241128160622
4.02 KB
Binary file not shown.

‎sources/net.sf.j2s.java.core/src/swingjs/plaf/JSTextUI.java‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,8 +1389,6 @@ else if (type == "keyup")
13891389
handleCtrlV(KeyEvent.KEY_RELEASED);
13901390
returnNOT_CONSUMED;
13911391
caseKeyEvent.VK_A:// a
1392-
if (!isCTRL)
1393-
returnnull;
13941392
returnnull;
13951393
//allowKeyEvent(jQueryEvent);
13961394
//return NOT_CONSUMED; // allow standard browser CTRL-C, with no Java-Event processing
@@ -1402,18 +1400,24 @@ else if (type == "keyup")
14021400

14031401
caseKeyEvent.VK_TAB:
14041402
returnhandleTab(jQueryEvent,type);
1405-
caseKeyEvent.VK_HOME:
1406-
caseKeyEvent.VK_END:
14071403
caseKeyEvent.VK_UP:
14081404
caseKeyEvent.VK_DOWN:
1409-
caseKeyEvent.VK_LEFT:
1410-
caseKeyEvent.VK_RIGHT:
1405+
// Jmol needs to catch these
1406+
returnnull;
14111407
caseKeyEvent.VK_PAGE_UP:
14121408
caseKeyEvent.VK_PAGE_DOWN:
1409+
// unfortunately, these CTRL-PAGE_UP and CTRL-PAGE_DOWN
1410+
// cannot be stopped in a browser from switching tabs
1411+
caseKeyEvent.VK_HOME:
1412+
caseKeyEvent.VK_END:
1413+
caseKeyEvent.VK_LEFT:
1414+
caseKeyEvent.VK_RIGHT:
14131415
caseKeyEvent.VK_KP_UP:
14141416
caseKeyEvent.VK_KP_DOWN:
14151417
caseKeyEvent.VK_KP_LEFT:
14161418
caseKeyEvent.VK_KP_RIGHT:
1419+
// BH 2024 - I don't understand why I did this
1420+
// BH 2024 - removed VK_UP and VK_DOWN from this list
14171421
// accept only if neither ALT nor CTRL is down
14181422
return (/** @j2sNative jQueryEvent.altKey || */
14191423
isCTRL ?CONSUMED :null);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp