Skip to content

Commit

Permalink
Merge pull request #516 from sfo/fix_escape_key
Browse files Browse the repository at this point in the history
fix use of ESC in settings window
  • Loading branch information
jooste authored Dec 18, 2024
2 parents fdf2f23 + f4f8184 commit 83524ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bluesky/ui/qtgl/settingswindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

def sel_palette(value, changed_fun):
wid = QComboBox()

palfiles = [path.basename(f) for f in (bs.resource(bs.settings.gfx_path) / 'palettes').glob('*')]
wid.addItems(palfiles)
wid.setCurrentText(value)
Expand Down Expand Up @@ -279,7 +279,7 @@ def showEvent(self, event):
pass

def keyPressEvent(self, event):
if event.key() == Qt.Key_Escape:
if event.key() == Qt.Key.Key_Escape:
self.close()

def clear_layout(layout):
Expand Down

0 comments on commit 83524ca

Please sign in to comment.