_plugins/kbd_tag.rb
# Convert modifier shortcut symbols to unicode
Convert modifier shortcut symbols to unicode
Convert modifier shortcut symbols to unicode
def to_mod
    characters = {
      '^' => '⌃',
      '~' => '⌥',
      '$' => '⇧',
      '@' => '⌘',
      '*' => 'Fn'
    }
    characters.key?(self) ? characters[self] : self
  end
def to_mod characters = { '^' => '⌃', '~' => '⌥', '$' => '⇧', '@' => '⌘', '*' => 'Fn' } characters . key? ( self ) ? characters [ self ] : self end
Convert modifier shortcut symbols to unicode
Convert modifier shortcut symbols to unicode