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



commit 22bfd832ca486cb59d28a3ea2a191b8ad180755e
Author: Michael Schumacher <schumaml gmx de>
Date:   Mon Jul 25 00:59:04 2016 +0200

    Bug 744878 - Python console should not close on Escape key
    
    The code is set up to work without returning early, use a pass instead.

 plug-ins/pygimp/plug-ins/pyconsole.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/pygimp/plug-ins/pyconsole.py b/plug-ins/pygimp/plug-ins/pyconsole.py
index 2849586..6784004 100644
--- a/plug-ins/pygimp/plug-ins/pyconsole.py
+++ b/plug-ins/pygimp/plug-ins/pyconsole.py
@@ -251,7 +251,7 @@ class _ReadLine(object):
 
         if not state:
             if keyval == _keys.Escape:
-                return True;
+                pass
             elif keyval == _keys.Return:
                 self._commit()
             elif keyval == _keys.Up:


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