File tree Expand file tree Collapse file tree 6 files changed +12
-8
lines changed
net.sf.j2s.core/dist/swingjs Expand file tree Collapse file tree 6 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
- 20241123180856
1
+ 20241128160622
Original file line number Diff line number Diff line change 1
- 20241123180856
1
+ 20241128160622
Original file line number Diff line number Diff line change @@ -1389,8 +1389,6 @@ else if (type == "keyup")
1389
1389
handleCtrlV (KeyEvent .KEY_RELEASED );
1390
1390
return NOT_CONSUMED ;
1391
1391
case KeyEvent .VK_A : // a
1392
- if (!isCTRL )
1393
- return null ;
1394
1392
return null ;
1395
1393
// allowKeyEvent(jQueryEvent);
1396
1394
// return NOT_CONSUMED; // allow standard browser CTRL-C, with no Java-Event processing
@@ -1402,18 +1400,24 @@ else if (type == "keyup")
1402
1400
1403
1401
case KeyEvent .VK_TAB :
1404
1402
return handleTab (jQueryEvent , type );
1405
- case KeyEvent .VK_HOME :
1406
- case KeyEvent .VK_END :
1407
1403
case KeyEvent .VK_UP :
1408
1404
case KeyEvent .VK_DOWN :
1409
- case KeyEvent . VK_LEFT :
1410
- case KeyEvent . VK_RIGHT :
1405
+ // Jmol needs to catch these
1406
+ return null ;
1411
1407
case KeyEvent .VK_PAGE_UP :
1412
1408
case KeyEvent .VK_PAGE_DOWN :
1409
+ // unfortunately, these CTRL-PAGE_UP and CTRL-PAGE_DOWN
1410
+ // cannot be stopped in a browser from switching tabs
1411
+ case KeyEvent .VK_HOME :
1412
+ case KeyEvent .VK_END :
1413
+ case KeyEvent .VK_LEFT :
1414
+ case KeyEvent .VK_RIGHT :
1413
1415
case KeyEvent .VK_KP_UP :
1414
1416
case KeyEvent .VK_KP_DOWN :
1415
1417
case KeyEvent .VK_KP_LEFT :
1416
1418
case KeyEvent .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
1417
1421
// accept only if neither ALT nor CTRL is down
1418
1422
return (/** @j2sNative jQueryEvent.altKey || */
1419
1423
isCTRL ? CONSUMED : null );
You can’t perform that action at this time.
0 commit comments