Mercurial > getan
changeset 142:d88240a3a065
Add global key to switch sorting of the project list
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Thu, 01 Nov 2012 11:30:08 +0100 |
parents | dafff6c3fa12 |
children | 9f4da22fb1f1 |
files | INTRODUCTION getan/states.py |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/INTRODUCTION Thu Nov 01 11:29:35 2012 +0100 +++ b/INTRODUCTION Thu Nov 01 11:30:08 2012 +0100 @@ -11,6 +11,7 @@ | space | Pause a running project (the time that will be inserted into database is the real running time without the break. | F1 | Switch time display mode in ProjectList. +| F2 | Switch sorting of entries in ProjectList. | d | Delete marked entries (in EntryList). | m | Start the 'wizzard' to move selected entries to another project.
--- a/getan/states.py Thu Nov 01 11:29:35 2012 +0100 +++ b/getan/states.py Thu Nov 01 11:30:08 2012 +0100 @@ -37,6 +37,10 @@ self.view.switch_time_mode() return self + if 'f2' in key: + self.view.switch_project_order() + return self + if 'tab' in key: if not self.controller.entries_view.rows: return self