Permalink
Browse files

N/Y accelerators for close dialog

  • Loading branch information...
1 parent 5597f0e commit 296ffbed4551b0da657485e7f4d8bcf9639b7e85 @minrk committed Oct 20, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 IPython/frontend/qt/console/ipythonqt.py
@@ -68,9 +68,9 @@ def closeEvent(self, event):
msg = "You are closing this Console window."
info = "Would you like to quit the Kernel and all attached Consoles as well?"
justthis = QtGui.QPushButton("No, just this Console", self)
- justthis.setShortcut(QtGui.QKeySequence.Close)
+ justthis.setShortcut('N')
closeall = QtGui.QPushButton("Yes, quit everything", self)
- closeall.setShortcut('A')
+ closeall.setShortcut('Y')
box = QtGui.QMessageBox(QtGui.QMessageBox.Question, title, msg)
box.setInformativeText(info)
box.addButton(cancel)

0 comments on commit 296ffbe

Please sign in to comment.