URI: 
       tclear window on ctrl-L - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 326ddaf4100d4a2d47ea053925aa169513c9d464
   DIR parent 8bb4628f112ad87f7fb7dc501581f59cb0fe7389
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Fri,  1 Feb 2013 18:32:56 +0100
       
       clear window on ctrl-L
       
       Diffstat:
         M lib/qt_console.py                   |       8 ++++++--
       
       1 file changed, 6 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/lib/qt_console.py b/lib/qt_console.py
       t@@ -26,6 +26,10 @@ class Console(QtGui.QPlainTextEdit):
                self.appendPlainText(message)
                self.newPrompt()
        
       +    def clear(self):
       +        self.setPlainText('')
       +        self.newPrompt()
       +
            def newPrompt(self):
                if self.construct:
                    prompt = '.' * len(self.prompt)
       t@@ -160,8 +164,8 @@ class Console(QtGui.QPlainTextEdit):
                elif event.key() == QtCore.Qt.Key_Down:
                    self.setCommand(self.getNextHistoryEntry())
                    return
       -        #elif event.key() == QtCore.Qt.Key_D and event.modifiers() == QtCore.Qt.ControlModifier:
       -        #    self.close()
       +        elif event.key() == QtCore.Qt.Key_L and event.modifiers() == QtCore.Qt.ControlModifier:
       +            self.clear()
                super(Console, self).keyPressEvent(event)