crecord: fix three typos introduced while moving crecord into core stable
authorLaurent Charignon <lcharignon@fb.com>
Fri, 05 Jun 2015 12:57:21 -0700
branchstable
changeset 25460 bd4bcfa48c9e
parent 25447 093d38165e5a
child 25461 6fabde6ef445
child 25471 7298da81f5a9
crecord: fix three typos introduced while moving crecord into core When moving crecord to core, I did a search an replace to remove all of the variable with caps letter. Doing so, I unfortunately changed some commands with capital letter shortcut to their lowercase counterpart. I fixed one of these cases in 093d38165e5a. This patch fixes all of the remaining cases.
mercurial/crecord.py
--- a/mercurial/crecord.py	Fri Jun 05 10:44:34 2015 -0700
+++ b/mercurial/crecord.py	Fri Jun 05 12:57:21 2015 -0700
@@ -1328,9 +1328,9 @@
                 [space] : (un-)select item ([~]/[x] = partly/fully applied)
                       a : (un-)select all items
     up/down-arrow [k/j] : go to previous/next unfolded item
-        pgup/pgdn [k/j] : go to previous/next item of same type
+        pgup/pgdn [K/J] : go to previous/next item of same type
  right/left-arrow [l/h] : go to child item / parent item
- shift-left-arrow   [h] : go to parent header / fold selected header
+ shift-left-arrow   [H] : go to parent header / fold selected header
                       f : fold / unfold item, hiding/revealing its children
                       F : fold / unfold parent item and all of its ancestors
                       m : edit / resume editing the commit message
@@ -1517,17 +1517,17 @@
     def handlekeypressed(self, keypressed, test=False):
         if keypressed in ["k", "KEY_UP"]:
             self.uparrowevent()
-        if keypressed in ["k", "KEY_PPAGE"]:
+        if keypressed in ["K", "KEY_PPAGE"]:
             self.uparrowshiftevent()
         elif keypressed in ["j", "KEY_DOWN"]:
             self.downarrowevent()
-        elif keypressed in ["j", "KEY_NPAGE"]:
+        elif keypressed in ["J", "KEY_NPAGE"]:
             self.downarrowshiftevent()
         elif keypressed in ["l", "KEY_RIGHT"]:
             self.rightarrowevent()
         elif keypressed in ["h", "KEY_LEFT"]:
             self.leftarrowevent()
-        elif keypressed in ["h", "KEY_SLEFT"]:
+        elif keypressed in ["H", "KEY_SLEFT"]:
             self.leftarrowshiftevent()
         elif keypressed in ["q"]:
             raise util.Abort(_('user quit'))