aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/metricsWindow.py
diff options
context:
space:
mode:
authorAdrien Tétar2015-10-30 10:36:37 +0100
committerAdrien Tétar2015-10-30 10:36:37 +0100
commit0c218c497fc17fca3460a9b097faf848d5e4bbce (patch)
tree8140ceaf02070c306e1162199b7215df7f26917c /Lib/defconQt/metricsWindow.py
parentd7eb9410856fdf362764b020a9f48d392c65081e (diff)
parent0786b86dff97981fdff4dd094185b0adb200181f (diff)
downloadtrufont-0c218c497fc17fca3460a9b097faf848d5e4bbce.tar.bz2
Merge pull request #97 from trufont/patch-7
meta: polishing and license cleanup
Diffstat (limited to 'Lib/defconQt/metricsWindow.py')
-rw-r--r--Lib/defconQt/metricsWindow.py5
1 files changed, 2 insertions, 3 deletions
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)