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



commit 2f62555d290765f28810e88bb01ffd81a0834a73
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 815fa69..0f16996 100644
--- a/plug-ins/pygimp/plug-ins/pyconsole.py
+++ b/plug-ins/pygimp/plug-ins/pyconsole.py
@@ -279,7 +279,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]