[1.1.0] paste() without a target should not click
Bug #1428056 reported by
Johannes
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
When I run my script with the version 1.0.1 and with the IDE 1.1.0 everything works fine. But I also run my scipt via JythonScriptRunner from Java. If I want to paste some text on the current caret position (and replace the selected text), sikuli does a click on the current mouse position and after that it paste the text. So my caret is on another position or my marked text isn't selected anymore before the new test will be inserted.
I looked up in the source code and the commit eba537c in Mouse.java Line 236 was the reason.
To post a comment you must log in.
Just to be clear: we are talking about something like that:
# having done some mouse actions to select a text
paste("new text")
If this is what you mean, then I have to confirm: paste(target, text), that should not do a click, if target is null).
before pasting, it does a click at the current mouse position, which indeed does not really makes sense.
(but the place to fix this is in Region.
But this should happen in any case, no matter wether you run the script with version 1.1.0 from IDE, command line or from Java.
So this needs clarification.