diff options
| author | Adrien Tétar | 2015-10-14 14:04:15 +0200 | 
|---|---|---|
| committer | Adrien Tétar | 2015-10-14 14:04:15 +0200 | 
| commit | 80083054465a560825676cf1e6e944f6572c473b (patch) | |
| tree | d930cba056559ad3ce1d048ea29986c51ec08cfd /Lib/defconQt/glyphView.py | |
| parent | b63c182aa1291d01d815cf2b45dfa4f1317f417b (diff) | |
| download | trufont-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.py | 3 | 
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): | 
