Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Copy/paste messed up in TextBox #40

Open
GoogleCodeExporter opened this issue Jul 17, 2015 · 1 comment
Open

Copy/paste messed up in TextBox #40

GoogleCodeExporter opened this issue Jul 17, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I was testing it in ChatBox, not TextBox, but I think it ends up in same 
component.

First extension - added 'cut' action around copy and paste

} else if (evt.getKeyCode() == KeyInput.KEY_X) {
if (copy) {
screen.setClipboardText(textRangeText);
if (rangeHead != -1 && rangeTail != -1) {
editTextRangeText("");
}
}
}


But the bug itself is about plain paste action and selections, without the 
extension above.

Type string abcdefghijk
Select first letter 'a' with mouse or keyboard
Ctrl-C
Position cursor after letter a
Ctrl-V - it is not working
Go to the end of the text by pressing 'END'
Ctrl-V - last letter is replaced by a even if it is not selected

Another bug - selection is not possible after pasting
Type string aaabbb
Select it all with Shift-arrows or shift-end
Copy
Paste
(one letter is lost as above)
Now try to select text by pressing Shift-left. Cursor is moving, but selection 
is not working. Selecting with mouse still works.







Original issue reported on code.google.com by [email protected] on 15 Mar 2013 at 11:49

@GoogleCodeExporter
Copy link
Author

The indexing on this is eventually going to dig my grave for me =)

I've noticed this as well, I've just been trying to build up the steam to 
attack the textfield again.

I'll be at it soon, but I can pretty much guarantee it will take the better 
part of a day to go through.

Original comment by [email protected] on 6 Apr 2013 at 5:13

  • Changed state: Accepted

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant