toggle expanded with enter key

This commit is contained in:
ecdsa 2013-03-03 19:53:35 +01:00
parent f97fe02e3a
commit c9e616a0d6

View File

@ -968,6 +968,9 @@ class ElectrumWindow(QMainWindow):
item = self.receive_list.itemAt(position)
if not item: return
addr = unicode(item.text(0))
if not is_valid(addr):
item.setExpanded(not item.isExpanded())
return
menu = QMenu()
menu.addAction(_("Copy to clipboard"), lambda: self.app.clipboard().setText(addr))
menu.addAction(_("QR code"), lambda: ElectrumWindow.show_qrcode("bitcoin:" + addr, _("Address")) )