Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/TextThought.py
diff options
context:
space:
mode:
authorDonScorgie <DonScorgie@8f060a39-251c-0410-b1f3-431655927647>2006-11-05 15:47:20 (GMT)
committer DonScorgie <DonScorgie@8f060a39-251c-0410-b1f3-431655927647>2006-11-05 15:47:20 (GMT)
commit737d03ab5e388e163cb57d692a417325ae9e99e1 (patch)
tree39f38a3c2e0289ea2ed2c244aecf23684b965c58 /src/TextThought.py
parentc20c039ffbc8a4e714d4d6954bfd2ec49f682bf1 (diff)
* src/MMapArea.py:
Implement ctrl-a when no thought is being edited git-svn-id: http://labyrinth.googlecode.com/svn/trunk@114 8f060a39-251c-0410-b1f3-431655927647
Diffstat (limited to 'src/TextThought.py')
-rw-r--r--src/TextThought.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/TextThought.py b/src/TextThought.py
index b5d1306..74f318e 100644
--- a/src/TextThought.py
+++ b/src/TextThought.py
@@ -239,7 +239,9 @@ class TextThought (BaseThought.BaseThought):
shift = event.state & modifiers == gtk.gdk.SHIFT_MASK
handled = True
if (event.state & modifiers) & gtk.gdk.CONTROL_MASK:
- if event.keyval == gtk.keysyms.a:
+ if not self.editing:
+ handled = False
+ elif event.keyval == gtk.keysyms.a:
self.index = self.bindex = 0
self.end_index = len (self.text)
elif event.keyval == gtk.keysyms.Escape: