From 70bed9b7987cf83e38a4ecd934a4a0acf73961ee Mon Sep 17 00:00:00 2001 From: ensan-hcl Date: Sun, 24 Sep 2023 05:25:23 +0900 Subject: [PATCH] add upper_lower key --- json/howToMake.md | 1 + python/howToMake.md | 1 + python/source/keys.py | 1 + swift/howToMake.md | 2 ++ swift/sources/CustardKit.swift | 7 +++++++ 5 files changed, 12 insertions(+) diff --git a/json/howToMake.md b/json/howToMake.md index 6cf6598..4e32815 100644 --- a/json/howToMake.md +++ b/json/howToMake.md @@ -333,6 +333,7 @@ azooKeyでは`"input"`の他にいくつかの動作を行うことができま | ----------------- | ------------------------------------------------------------ | | change_keyboard | 地球儀キー(キーボード切り替えキー)。ホームボタンがない端末ではカーソルバーの表示キーに切り替わります。 | | enter | 改行・確定キー。 | +| upper_lower | 大文字・小文字キー。 | | flick_kogaki | ユーザがカスタムしている可能性のあるフリックの「小゙゚」キー。grid_fitのtenkey_style以外での利用は非推奨。 | | flick_kutoten | ユーザがカスタムしている可能性のあるフリックの「、。?!」キー。grid_fitのtenkey_style以外での利用は非推奨。 | | flick_hira_tab | ユーザがカスタムしている可能性のあるフリックの「あいう」キー。grid_fitのtenkey_style以外での利用は非推奨。 | diff --git a/python/howToMake.md b/python/howToMake.md index f231d66..627b004 100644 --- a/python/howToMake.md +++ b/python/howToMake.md @@ -252,6 +252,7 @@ specifier = GridScrollSpecifier(index = 42) | ----------------- | ------------------------------------------------------------ | | change_keyboard | 地球儀キー(キーボード切り替えキー)。ホームボタンがない端末ではカーソルバーの表示キーに切り替わります。ホームボタンがない端末ではカーソルバーの表示キーに切り替わります。 | | enter | 改行・確定キー。 | +| upper_lower | 大文字・小文字キー。 | | flick_kogaki | ユーザがカスタムしている可能性のあるフリックの「小゙゚」キー。grid_fitのtenkey_style以外での利用は非推奨。 | | flick_kutoten | ユーザがカスタムしている可能性のあるフリックの「、。?!」キー。grid_fitのtenkey_style以外での利用は非推奨。 | | flick_hira_tab | ユーザがカスタムしている可能性のあるフリックの「あいう」キー。grid_fitのtenkey_style以外での利用は非推奨。 | diff --git a/python/source/keys.py b/python/source/keys.py index a74f500..06d35df 100644 --- a/python/source/keys.py +++ b/python/source/keys.py @@ -181,6 +181,7 @@ def flickSpace(): class SystemKeyType(str, Enum): change_keyboard = "change_keyboard" enter = "enter" + upper_lower = "upper_lower" flick_kogaki = "flick_kogaki" flick_kutoten = "flick_kutoten" flick_hira_tab = "flick_hira_tab" diff --git a/swift/howToMake.md b/swift/howToMake.md index 33a1839..d8a8c9e 100644 --- a/swift/howToMake.md +++ b/swift/howToMake.md @@ -266,6 +266,7 @@ enum CustardInterfaceKey { enum CustardInterfaceSystemKey{ case change_keyboard case enter + case upper_lower case flick_kogaki case flick_kutoten case flick_hira_tab @@ -280,6 +281,7 @@ enum CustardInterfaceSystemKey{ | ------------------ | ------------------------------------------------------------ | | .change_keyboard | 地球儀キー(キーボード切り替えキー)。ホームボタンがない端末ではカーソルバーの表示キーに切り替わります。 | | .enter | 改行・確定キー。 | +| .upper_lower | 大文字・小文字キー。 | | .flick_kogaki | ユーザがカスタムしている可能性のあるフリックの「小゙゚」キー。gridFitのtenkeyStyle以外での利用は非推奨。 | | .flick_kutoten | ユーザがカスタムしている可能性のあるフリックの「、。?!」キー。gridFitのtenkeyStyle以外での利用は非推奨。 | | .flick_hira_tab | ユーザがカスタムしている可能性のあるフリックの「あいう」キー。gridFitのtenkeyStyle以外での利用は非推奨。 | diff --git a/swift/sources/CustardKit.swift b/swift/sources/CustardKit.swift index b43df14..07c7739 100644 --- a/swift/sources/CustardKit.swift +++ b/swift/sources/CustardKit.swift @@ -562,6 +562,9 @@ public enum CustardInterfaceSystemKey: Codable, Equatable, Hashable, Sendable { /// - the enter key that changes its label in condition case enter + /// - the upper_lower toggle key + case upperLower + ///custom keys. /// - flick 小゙゚key case flickKogaki @@ -583,6 +586,7 @@ public extension CustardInterfaceSystemKey{ private enum ValueType: String, Codable { case change_keyboard case enter + case upper_lower case flick_kogaki case flick_kutoten case flick_hira_tab @@ -594,6 +598,7 @@ public extension CustardInterfaceSystemKey{ switch self{ case .changeKeyboard: return .change_keyboard case .enter: return .enter + case .upperLower: return .upper_lower case .flickKogaki: return .flick_kogaki case .flickKutoten: return .flick_kutoten case .flickHiraTab: return .flick_hira_tab @@ -615,6 +620,8 @@ public extension CustardInterfaceSystemKey{ self = .enter case .change_keyboard: self = .changeKeyboard + case .upper_lower: + self = .upperLower case .flick_kogaki: self = .flickKogaki case .flick_kutoten: