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/glyphCollectionView.py | |
| parent | b63c182aa1291d01d815cf2b45dfa4f1317f417b (diff) | |
| download | trufont-80083054465a560825676cf1e6e944f6572c473b.tar.bz2 | |
meta: use backspace as Del key on OSX, refactor
Diffstat (limited to 'Lib/defconQt/glyphCollectionView.py')
| -rw-r--r-- | Lib/defconQt/glyphCollectionView.py | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/Lib/defconQt/glyphCollectionView.py b/Lib/defconQt/glyphCollectionView.py index e2c9c1c..52a2f0a 100644 --- a/Lib/defconQt/glyphCollectionView.py +++ b/Lib/defconQt/glyphCollectionView.py @@ -1,3 +1,4 @@ +from defconQt.util import platformSpecific  from PyQt5.QtCore import QMimeData, QRectF, QSize, Qt  from PyQt5.QtGui import (QBrush, QColor, QCursor, QDrag, QFont, QFontMetrics,      QKeySequence, QLinearGradient, QPainter, QPen) @@ -228,7 +229,7 @@ class GlyphCollectionWidget(QWidget):              self.selection = set()          # XXX: this is specific to fontView so should be done thru subclassing of a base widget,          # as is done in groupsView -        elif key == Qt.Key_Delete: +        elif key == platformSpecific.deleteKey:              #if self.characterDeletionCallback is not None:              if proceedWithDeletion(self) and self.selection:                  # we need to del in reverse order to keep key references valid | 
