# HG changeset patch # User Ryan McElroy # Date 2016-03-18 18:06:03 # Node ID 3c8f0a60550466c17cc1993ead24328314a232b4 # Parent 8b41ad798fb749dbe3d5af1ef71bc2221a1ca893 crecord: add docblock to handlekeypressed This information is pretty useful when reading the code. diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -1580,6 +1580,11 @@ are you sure you want to review/edit and return True def handlekeypressed(self, keypressed, test=False): + """ + Perform actions based on pressed keys. + + Return true to exit the main loop. + """ if keypressed in ["k", "KEY_UP"]: self.uparrowevent() if keypressed in ["K", "KEY_PPAGE"]: