macOS: add descriptions for PgUp, PgDown, End, and Home keys (#7177)

Resolves #7174. The PgUp, PgDown, End, and Home keys were not being
assigned a description in the `KeyboardShortcut` extension.
pull/7195/head
Mitchell Hashimoto 2025-04-23 13:32:51 -07:00 committed by GitHub
commit 4e91d11a60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ extension KeyboardShortcut: @retroactive CustomStringConvertible {
case .downArrow: keyString = ""
case .leftArrow: keyString = ""
case .rightArrow: keyString = ""
case .pageUp: keyString = "PgUp"
case .pageDown: keyString = "PgDown"
case .end: keyString = "End"
case .home: keyString = "Home"
default:
keyString = String(key.character.uppercased())
}