comparison src/org/tn5250j/framework/tn5250/Screen5250.java @ 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
comparison
equal deleted inserted replaced
184:cdaaa53b5eca 185:c51bcf9f0516
2676 setDirty(lastPos + cf.getLength()); 2676 setDirty(lastPos + cf.getLength());
2677 lastPos += data.length; 2677 lastPos += data.length;
2678 if (!isInField()) { 2678 if (!isInField()) {
2679 gotoFieldNext(); 2679 gotoFieldNext();
2680 isInField(); 2680 isInField();
2681 cf = screenFields.getCurrentField();
2682 lastPos = cf.getStartPos();
2681 } 2683 }
2682 cf = screenFields.getCurrentField();
2683 lastPos = cf.getStartPos();
2684 setDirty(lastPos); 2684 setDirty(lastPos);
2685 fireCursorChanged(); 2685 fireCursorChanged();
2686 } 2686 }
2687 2687
2688 updateDirty(); 2688 updateDirty();