# HG changeset patch # User Ryan McElroy # Date 1458324363 25200 # Node ID 3c8f0a60550466c17cc1993ead24328314a232b4 # Parent 8b41ad798fb749dbe3d5af1ef71bc2221a1ca893 crecord: add docblock to handlekeypressed This information is pretty useful when reading the code. diff -r 8b41ad798fb7 -r 3c8f0a605504 mercurial/crecord.py --- a/mercurial/crecord.py Fri Mar 18 11:06:03 2016 -0700 +++ b/mercurial/crecord.py Fri Mar 18 11:06:03 2016 -0700 @@ -1580,6 +1580,11 @@ 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"]: