diff options
| author | Tomáš Znamenáček | 2015-01-14 10:03:31 +0100 |
|---|---|---|
| committer | Tomáš Znamenáček | 2015-01-14 10:03:31 +0100 |
| commit | bdb64f0177a9bac79002ac929d0328b32f10143c (patch) | |
| tree | a0275e275e22f4257e2e3dcdc0e5bf9e01b07e0b | |
| parent | cfc4bd64d0f5d784633b7ae5d9faf8a6a657f239 (diff) | |
| download | MASShortcut-bdb64f0177a9bac79002ac929d0328b32f10143c.tar.bz2 | |
Use the clear glyph instead of backspace for clearing a shortcut.
The recording control used to display the backspace glyph (U+232B)
on the button that clears the shortcut. That’s a bit confusing, since
the same backspace glyph can also appear inside the control,
representing the recorded shortcut. The clear glyph (U+2715,
diagonal cross) seems like a better fit – it’s already used in
similar context throughout the Apple UIs like search bars.
| -rw-r--r-- | Framework/MASShortcutView.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Framework/MASShortcutView.m b/Framework/MASShortcutView.m index aace67e..9f26e07 100644 --- a/Framework/MASShortcutView.m +++ b/Framework/MASShortcutView.m @@ -188,7 +188,7 @@ NSString *const MASShortcutBinding = @"shortcutValue"; - (void)drawRect:(CGRect)dirtyRect { if (self.shortcutValue) { - [self drawInRect:self.bounds withTitle:NSStringFromMASKeyCode(self.recording ? kMASShortcutGlyphEscape : kMASShortcutGlyphDeleteLeft) + [self drawInRect:self.bounds withTitle:NSStringFromMASKeyCode(self.recording ? kMASShortcutGlyphEscape : kMASShortcutGlyphClear) alignment:NSRightTextAlignment state:NSOffState]; CGRect shortcutRect; |
