[gimp] Bug 744878 - Python console should not close on Escape key



commit a9b85bff5fcfc4d6b23f83675f50c26505d1bcd0
Author: Akkana Peck <akkana git gnome org>
Date:   Mon Jul 25 00:57:07 2016 +0200

    Bug 744878 - Python console should not close on Escape key

 plug-ins/pygimp/plug-ins/pyconsole.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/pygimp/plug-ins/pyconsole.py b/plug-ins/pygimp/plug-ins/pyconsole.py
index 5e0d03b..815fa69 100644
--- a/plug-ins/pygimp/plug-ins/pyconsole.py
+++ b/plug-ins/pygimp/plug-ins/pyconsole.py
@@ -278,7 +278,9 @@ class _ReadLine(object):
         keyval = event.keyval
 
         if not state:
-            if keyval == _keys.Return:
+            if keyval == _keys.Escape:
+                return True;
+            elif keyval == _keys.Return:
                 self._commit()
             elif keyval == _keys.Up:
                 self.__history(-1)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]