Mercurial > 510Connectbot
changeset 185:c51bcf9f0516
setfield positions the cursor properly as if the characters were typed
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 02 Jul 2014 14:46:16 -0700 |
parents | cdaaa53b5eca |
children | 61a90cb1938d |
files | src/com/five_ten_sg/connectbot/transport/TN5250.java src/org/tn5250j/framework/tn5250/Screen5250.java |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/transport/TN5250.java Wed Jul 02 14:32:13 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/transport/TN5250.java Wed Jul 02 14:46:16 2014 -0700 @@ -204,7 +204,7 @@ } if (b == 122) { // special case z for testing - setField(17, 40, new char[0]); + setField(17, 41, new char[0]); return; } if (controls.containsKey(b)) keyPressed(controls.get(b), ' ', 0);
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java Wed Jul 02 14:32:13 2014 -0700 +++ b/src/org/tn5250j/framework/tn5250/Screen5250.java Wed Jul 02 14:46:16 2014 -0700 @@ -2678,9 +2678,9 @@ if (!isInField()) { gotoFieldNext(); isInField(); + cf = screenFields.getCurrentField(); + lastPos = cf.getStartPos(); } - cf = screenFields.getCurrentField(); - lastPos = cf.getStartPos(); setDirty(lastPos); fireCursorChanged(); }