Change review toggle keybinding to 'v'.
So that the review toggle command can have the same keybinding in the change list and change view, switch it to 'v'. 'r' and 'd' are other candidates but both make more sense for the 'review' and 'diff' commands in the change view. Change-Id: I806fd528cc6fa648450d69181aadbacd67548dda
This commit is contained in:
parent
4abd095419
commit
c9f094a62f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user