Skip to content

Commit

Permalink
Merge pull request #53 from ensan-hcl/feature/upper_lower_key
Browse files Browse the repository at this point in the history
[Feature] add upper_lower key
  • Loading branch information
ensan-hcl authored Sep 23, 2023
2 parents 0d89c9e + 70bed9b commit 2594db1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions json/howToMake.md
Original file line number Diff line number Diff line change
Expand Up @@ -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以外での利用は非推奨。 |
Expand Down
1 change: 1 addition & 0 deletions python/howToMake.md
Original file line number Diff line number Diff line change
Expand Up @@ -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以外での利用は非推奨。 |
Expand Down
1 change: 1 addition & 0 deletions python/source/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions swift/howToMake.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -280,6 +281,7 @@ enum CustardInterfaceSystemKey{
| ------------------ | ------------------------------------------------------------ |
| .change_keyboard | 地球儀キー(キーボード切り替えキー)。ホームボタンがない端末ではカーソルバーの表示キーに切り替わります。 |
| .enter | 改行・確定キー。 |
| .upper_lower | 大文字・小文字キー。 |
| .flick_kogaki | ユーザがカスタムしている可能性のあるフリックの「小゙゚」キー。gridFitのtenkeyStyle以外での利用は非推奨。 |
| .flick_kutoten | ユーザがカスタムしている可能性のあるフリックの「、。?!」キー。gridFitのtenkeyStyle以外での利用は非推奨。 |
| .flick_hira_tab | ユーザがカスタムしている可能性のあるフリックの「あいう」キー。gridFitのtenkeyStyle以外での利用は非推奨。 |
Expand Down
7 changes: 7 additions & 0 deletions swift/sources/CustardKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 2594db1

Please sign in to comment.