[rkward-tracker] [ rkward-Bugs-3453721 ] FIXED IN SVN: Can't type in the console if text is selected

SourceForge.net noreply at sourceforge.net
Wed Dec 7 18:26:18 UTC 2011


Bugs item #3453721, was opened at 2011-12-07 08:58
Message generated for change (Comment added) made by tfry
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=459007&aid=3453721&group_id=50231

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Milan Bouchet-Valat (nalimilan)
>Assigned to: Thomas Friedrichsmeier (tfry)
>Summary: FIXED IN SVN: Can't type in the console if text is selected

Initial Comment:
If you select some text in the R console, you can't type any text in it. This is very annoying, because I often end up selecting one or two characters inadvertently when I click on the console to focus it: when the mouse is moving, it's very hard to avoid selecting something.

It took me months to understand why, seemingly at random, I couldn't type anything. I can imagine this may bite people at times, which gives a very bad impression.

As I don't see the reason why typing should be disabled when text is selected, I suggest changing this behavior (unless that's a technical limitation).

----------------------------------------------------------------------

>Comment By: Thomas Friedrichsmeier (tfry)
Date: 2011-12-07 10:26

Message:
Hi!

The technical issue behind this is this: If a selection is active, any key
press would usually affect that selection (e.g. replacing it). Since
everything outside the last line should be read-only, the policy was to
ignore key-presses (with a beep), if there is a selection, outside the last
line.

I have now changed this to clear the selection (not the selection contents,
of course), then handle the key. I guess that really is better is almost
all use cases.

Regards
Thomas

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=459007&aid=3453721&group_id=50231




More information about the rkward-tracker mailing list