From 77b6b0f9161dc909622ef99d311187150ddb1e8d Mon Sep 17 00:00:00 2001 From: Adrien Tétar Date: Fri, 30 Oct 2015 10:01:43 +0100 Subject: meta: polishings --- Lib/defconQt/metricsWindow.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Lib/defconQt/metricsWindow.py') diff --git a/Lib/defconQt/metricsWindow.py b/Lib/defconQt/metricsWindow.py index 27689ab..c62b40e 100644 --- a/Lib/defconQt/metricsWindow.py +++ b/Lib/defconQt/metricsWindow.py @@ -1,5 +1,5 @@ from defconQt import icons_db # noqa -from defconQt.glyphCollectionView import arrowKeys, cellSelectionColor +from defconQt.glyphCollectionView import cellSelectionColor from defconQt.glyphView import MainGfxWindow from defconQt.objects.defcon import TGlyph from getpass import getuser @@ -532,7 +532,7 @@ class GlyphsCanvas(QWidget): def keyPressEvent(self, event): key = event.key() - if key in arrowKeys: + if key in (Qt.Key_Left, Qt.Key_Right): self._arrowKeyPressEvent(event) else: super().keyPressEvent(event) @@ -576,7 +576,6 @@ class GlyphsCanvas(QWidget): self.update() # restore focus to ourselves, the table widget did take it when we # sent notification - # TODO: maybe not set focus on notifiee instead self.setFocus(Qt.MouseFocusReason) else: super(GlyphsCanvas, self).mousePressEvent(event) -- cgit v1.2.3