summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpazz <patricktotzke@gmail.com>2011-08-06 16:35:12 +0100
committerpazz <patricktotzke@gmail.com>2011-08-06 16:35:12 +0100
commit51b89da077240b44bfa71fad53052b9231b3ce6f (patch)
treefef3dd6c648675a938a4486945d897c731a1ffb4
parent58a77b5d9f6f08b4f93ca358c9927157ab5ae653 (diff)
more debugging feedback upon input
-rw-r--r--alot/ui.py1
-rw-r--r--alot/widgets.py10
2 files changed, 6 insertions, 5 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 1dfe33ac..907d63e2 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -33,6 +33,7 @@ class MainWidget(urwid.Frame):
self.ui = ui
def keypress(self, size, key):
+ self.ui.logger.debug('got key: %s' % key)
cmdline = config.get_mapping(self.ui.mode, key)
if cmdline:
cmd = interpret_commandline(cmdline, self.ui.mode)
diff --git a/alot/widgets.py b/alot/widgets.py
index bcba017c..ea52d684 100644
--- a/alot/widgets.py
+++ b/alot/widgets.py
@@ -442,11 +442,11 @@ class MessageBodyWidget(urwid.AttrMap):
bodytxt = message.extract_body(msg)
urwid.AttrMap.__init__(self, urwid.Text(bodytxt), 'message_body')
- def selectable(self):
- return True
-
- def keypress(self, size, key):
- return key
+# def selectable(self):
+# return True
+#
+# def keypress(self, size, key):
+# return key
class AttachmentWidget(urwid.WidgetWrap):