# HG changeset patch # User Kyle Lippincott # Date 2019-07-08 19:38:37 # Node ID 3be6ff55095b6626846a5a45f05a54130c986746 # Parent 75fd9421440bb0aeab2f17354d677805f9a8b734 crecord: fix if -> elif when handling key presses This shouldn't actually change any behavior, I only noticed it since I started using KEY_UP in tests, and it was complaining when it got down to the ^L handler that initscr hadn't been called yet. Differential Revision: https://phab.mercurial-scm.org/D6619 diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -1724,7 +1724,7 @@ are you sure you want to review/edit and keypressed = pycompat.bytestr(keypressed) if keypressed in ["k", "KEY_UP"]: self.uparrowevent() - if keypressed in ["K", "KEY_PPAGE"]: + elif keypressed in ["K", "KEY_PPAGE"]: self.uparrowshiftevent() elif keypressed in ["j", "KEY_DOWN"]: self.downarrowevent()