Author: bugman
Date: Wed Oct 15 17:41:20 2014
New Revision: 26290
URL: http://svn.gna.org/viewcvs/relax?rev=26290&view=rev
Log:
Improvements for selecting all text in the relax controller window.
Selecting text using the pop up menu or [Ctrl-A] now shifted the caret to line
1 before selecting
all text. This deactivates the following of the end of text, if active, as the
text following
feature causes the text selection to be lost.
Modified:
trunk/gui/controller.py
Modified: trunk/gui/controller.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/gui/controller.py?rev=26290&r1=26289&r2=26290&view=diff
==============================================================================
--- trunk/gui/controller.py (original)
+++ trunk/gui/controller.py Wed Oct 15 17:41:20 2014
@@ -686,7 +686,7 @@
# Select all (Ctrl-A).
if event.ControlDown() and event.GetKeyCode() == 65:
- event.Skip()
+ self.on_select_all(event)
# Find next (Ctrl-G on Mac OS X, F3 on all others).
if 'darwin' in sys.platform and event.ControlDown() and
event.GetKeyCode() == 71:
@@ -1035,6 +1035,9 @@
# Turn off the end flag.
self.at_end = False
+
+ # Go to the first line.
+ self.GotoPos(1)
# Select all text in the control.
self.SelectAll()
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits