Merge "Change review toggle keybinding to 'v'."

This commit is contained in:
Jenkins 2014-05-27 16:06:33 +00:00 committed by Gerrit Code Review
commit 62c4c54614
2 changed files with 4 additions and 4 deletions

View File

@ -260,10 +260,10 @@ class ChangeView(urwid.WidgetWrap):
help = mywid.GLOBAL_HELP + """
This Screen
===========
<R> Toggle the reviewed flag for the current change.
<c> Checkout the most recent revision.
<d> Show the diff of the mont recent revision.
<r> Leave a review for the most recent revision.
<v> Toggle the reviewed flag for the current change.
"""
def __init__(self, app, change_key):
@ -420,7 +420,7 @@ This Screen
def keypress(self, size, key):
r = super(ChangeView, self).keypress(size, key)
if r == 'R':
if r == 'v':
self.toggleReviewed()
self.refresh()
return None

View File

@ -69,7 +69,7 @@ class ChangeListView(urwid.WidgetWrap):
This Screen
===========
<l> Toggle whether only unreviewed or all changes are displayed.
<r> Toggle the reviewed flag for the currently selected change.
<v> Toggle the reviewed flag for the currently selected change.
"""
def __init__(self, app, project_key):
@ -129,7 +129,7 @@ This Screen
self.unreviewed = not self.unreviewed
self.refresh()
return None
if key=='r':
if key=='v':
if not len(self.listbox.body):
return None
pos = self.listbox.focus_position