aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/glyphView.py
diff options
context:
space:
mode:
authorAdrien Tétar2015-10-14 14:04:15 +0200
committerAdrien Tétar2015-10-14 14:04:15 +0200
commit80083054465a560825676cf1e6e944f6572c473b (patch)
treed930cba056559ad3ce1d048ea29986c51ec08cfd /Lib/defconQt/glyphView.py
parentb63c182aa1291d01d815cf2b45dfa4f1317f417b (diff)
downloadtrufont-80083054465a560825676cf1e6e944f6572c473b.tar.bz2
meta: use backspace as Del key on OSX, refactor
Diffstat (limited to 'Lib/defconQt/glyphView.py')
-rw-r--r--Lib/defconQt/glyphView.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/defconQt/glyphView.py b/Lib/defconQt/glyphView.py
index 9a2b91c..507fb85 100644
--- a/Lib/defconQt/glyphView.py
+++ b/Lib/defconQt/glyphView.py
@@ -5,6 +5,7 @@ from defcon import Anchor, Component
from defconQt import icons_db
from defconQt.objects.defcon import TContour, TGlyph
from defconQt.pens.copySelectionPen import CopySelectionPen
+from defconQt.util import platformSpecific
from fontTools.misc import bezierTools
from PyQt5.QtCore import *#QFile, QLineF, QObject, QPointF, QRectF, QSize, Qt
from PyQt5.QtGui import *#QBrush, QColor, QImage, QKeySequence, QPainter, QPainterPath, QPixmap, QPen
@@ -863,7 +864,7 @@ class GlyphScene(QGraphicsScene):
x,y = count,0
elif key == Qt.Key_Down:
x,y = 0,-count
- elif key == Qt.Key_Delete:
+ elif key == platformSpecific.deleteKey:
self._blocked = True
for item in self.selectedItems():
if isinstance(item, OnCurvePointItem):