Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Sources/HotKey/Key.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public enum Key {
case grave // Backtick
case leftBracket
case minus
case section

// MARK: - Whitespace

Expand Down Expand Up @@ -260,6 +261,7 @@ public enum Key {
case "rightarrow", "→": self = .rightArrow
case "downarrow", "↓": self = .downArrow
case "uparrow", "↑": self = .upArrow
case "section", "§": self = .section

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind fixing the indentation on 264, 384, and 504 to match the others around it?

default: return nil
}
}
Expand Down Expand Up @@ -379,6 +381,7 @@ public enum Key {
case UInt32(kVK_RightArrow): self = .rightArrow
case UInt32(kVK_DownArrow): self = .downArrow
case UInt32(kVK_UpArrow): self = .upArrow
case UInt32(kVK_ISO_Section): self = .section
default: return nil
}
}
Expand Down Expand Up @@ -498,6 +501,7 @@ public enum Key {
case .rightArrow: return UInt32(kVK_RightArrow)
case .downArrow: return UInt32(kVK_DownArrow)
case .upArrow: return UInt32(kVK_UpArrow)
case .section: return UInt32(kVK_ISO_Section)
}
}
}
Expand Down Expand Up @@ -604,6 +608,7 @@ extension Key: CustomStringConvertible {
case .rightArrow: return "→"
case .downArrow: return "↓"
case .upArrow: return "↑"
case .section: return "§"
}
}
}
Expand Down