Update main.py

This commit is contained in:
Damien Elmes 2020-04-11 14:19:27 +10:00 committed by GitHub
parent 653f5765b8
commit a068fcdc9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1362,11 +1362,11 @@ will be lost. Continue?"""
menu = frm.log.createStandardContextMenu(QCursor.pos())
menu.addSeparator()
if name == "log":
a = menu.addAction(_("Clear Log"))
a = menu.addAction("Clear Log")
a.setShortcuts(QKeySequence("ctrl+l"))
qconnect(a.triggered, frm.log.clear)
elif name == "text":
a = menu.addAction(_("Clear Code"))
a = menu.addAction("Clear Code")
a.setShortcuts(QKeySequence("ctrl+shift+l"))
qconnect(a.triggered, frm.text.clear)
menu.exec(QCursor.pos())