Skip to content

Commit 97833ea

Browse files
committed
allowing up/down arrow in JTextPane
not straight up/down as in Java.
1 parent 457e7dc commit 97833ea

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed
-131 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20220122050025
1+
20220123183926
-131 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20220122050025
1+
20220123183926

sources/net.sf.j2s.java.core/src/javax/swing/text/DefaultEditorKit.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,11 +1669,11 @@ public void actionPerformed(ActionEvent e) {
16691669
if(magicPosition == null &&
16701670
(direction == SwingConstants.NORTH ||
16711671
direction == SwingConstants.SOUTH)) {
1672-
Rectangle r = (bidiCaret != null) ?
1673-
((TextUI) target.getUI()).modelToView(target, dot,
1674-
bidiCaret.getDotBias()) :
1675-
target.modelToView(dot);
1676-
magicPosition = new Point(r.x, r.y);
1672+
// Rectangle r = (bidiCaret != null) ?
1673+
// ((TextUI) target.getUI()).modelToView(target, dot,
1674+
// bidiCaret.getDotBias()) :
1675+
// target.modelToView(dot);
1676+
//BH can't do this in JavaScript yet magicPosition = new Point(r.x, r.y);
16771677
}
16781678

16791679
NavigationFilter filter = target.getNavigationFilter();

0 commit comments

Comments
 (0)