From a4d26c4a07010b970187b9c253fa2b5da506c8b0 Mon Sep 17 00:00:00 2001 From: Alex Rodionov Date: Thu, 5 Sep 2024 11:36:12 -0700 Subject: [PATCH] Forbid using `v` for pins Fixes #860 --- Maccy/Models/HistoryItem.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Maccy/Models/HistoryItem.swift b/Maccy/Models/HistoryItem.swift index 1fc93bf7..db9ddbea 100644 --- a/Maccy/Models/HistoryItem.swift +++ b/Maccy/Models/HistoryItem.swift @@ -5,9 +5,11 @@ import SwiftData @Model class HistoryItem { static var supportedPins: Set { + // "q" reserved for quit + // "v" reserved for paste var keys = Set([ - "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", - "n", "o", "p", "r", "s", "t", "u", "v", "w", "x", "y", "z" // "q" reserved for quit + "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", + "m", "n", "o", "p", "r", "s", "t", "u", "w", "x", "y", "z" ]) if let deleteKey = KeyChord.deleteKey {