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



commit b7b6217858e5230a51a69e14bccf4f9cd179e506
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 a85bae3..2849586 100644
--- a/plug-ins/pygimp/plug-ins/pyconsole.py
+++ b/plug-ins/pygimp/plug-ins/pyconsole.py
@@ -250,7 +250,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]