##// END OF EJS Templates
Use a loop to collect the keys that are displayed as a...
walter.doerwald -
Show More
@@ -1370,12 +1370,10 b' class ibrowse(ipipe.Display):'
1370 footery = 2
1370 footery = 2
1371
1371
1372 keys = []
1372 keys = []
1373 quitkey = self.keymap.findkey("quit", None)
1373 for key in ("quit", "help"):
1374 if quitkey is not None:
1374 key = self.keymap.findkey(key, None)
1375 keys.append("%s=quit" % self.keylabel(quitkey))
1375 if key is not None:
1376 helpkey = self.keymap.findkey("help", None)
1376 keys.append("%s=quit" % self.keylabel(key))
1377 if helpkey is not None:
1378 keys.append("%s=help" % self.keylabel(helpkey))
1379 helpmsg = " | %s" % " ".join(keys)
1377 helpmsg = " | %s" % " ".join(keys)
1380
1378
1381 scr.clear()
1379 scr.clear()
General Comments 0
You need to be logged in to leave comments. Login now