Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

dialogmixin: do not close dialog windows on ESC keypress

closing a window on ESC is definitely non-standard on Windows

Changeset a037d4fc820c

Parent 8888c9c356a9

by Adrian Buehlmann

Changes to one file · Browse files at a037d4fc820c Showing diff from parent 8888c9c356a9 Diff from another changeset...

 
70
71
72
73
74
75
76
77
78
79
80
81
82
 
97
98
99
100
101
102
103
104
105
106
107
108
109
110
 
70
71
72
 
 
 
 
 
 
 
73
74
75
 
90
91
92
 
 
 
 
 
 
 
 
93
94
95
@@ -70,13 +70,6 @@
  self.disab_shortcuts = []     def load_ui(self): - # we explicitely create a QShortcut so we can disable it - # when a "helper context toolbar" is activated (which can be - # closed hitting the Esc shortcut) - self.esc_shortcut = QtGui.QShortcut(self) - self.esc_shortcut.setKey(Qt.Key_Escape) - connect(self.esc_shortcut, SIGNAL('activated()'), - self.maybeClose)   self._quickbars = []     def attachQuickBar(self, qbar): @@ -97,14 +90,6 @@
  for w in self._quickbars:   if w is not tb:   w.hide() - - def maybeClose(self): - for w in self._quickbars: - if w.isVisible(): - w.cancel() - break - else: - self.close()     def load_config(self, ui):   cfg = HgConfig(ui)