nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit def214f4466a69b4078d30c27dd32720227c6d01
parent 7f86ad5d1dec364332a533d35f4d1f1a52f939b8
Author: Eric Davis <edavis@insanum.com>
Date:   Sat, 21 Jun 2014 00:51:37 -0700

disable handling mouse
minor cleanup

Diffstat:
Msncli.py | 11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/sncli.py b/sncli.py @@ -227,15 +227,6 @@ def keypress(self, size, key): else: return key - class NoteView(urwid.Filler): - def __init__(self, note): - note_widget = urwid.Text(('note_view', note['content'])) - super(NoteView, self).__init__(note_widget, 'top') - - def urwid_unhandled_keypress(key): - if key == 'q' or key == 'Q': - sncli_loop.widget = NoteTitleListBox() - palette = [ ('note_title_focus', 'black', 'dark red'), ('note_title', 'dark red', 'default'), @@ -244,7 +235,7 @@ def urwid_unhandled_keypress(key): sncli_loop = urwid.MainLoop(NoteTitleListBox(), palette, - unhandled_input=urwid_unhandled_keypress) + handle_mouse=False) sncli_loop.run() def urwid_one(self):