-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87470c8
commit bbce823
Showing
17 changed files
with
108 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
app/src/main/java/org/jyutping/jyutping/keyboard/KeyboardCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.jyutping.jyutping.keyboard | ||
|
||
enum class KeyboardCase { | ||
Lowercased, | ||
Uppercased, | ||
CapsLocked | ||
} | ||
|
||
fun KeyboardCase.isLowercased(): Boolean = this == KeyboardCase.Lowercased | ||
fun KeyboardCase.isUppercased(): Boolean = this == KeyboardCase.Uppercased | ||
fun KeyboardCase.isCapsLocked(): Boolean = this == KeyboardCase.CapsLocked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportHeight="56" | ||
android:viewportWidth="56"> | ||
<path | ||
android:pathData="M20.781,37.621L35.242,37.621C38.523,37.621 40.258,35.699 40.258,32.605L40.258,28.457L49.14,28.457C51.086,28.457 52.633,27.309 52.633,25.504C52.633,24.402 52.07,23.535 51.016,22.621L30.906,4.879C29.945,4.035 29.055,3.473 28,3.473C26.969,3.473 26.078,4.035 25.117,4.879L4.984,22.645C3.883,23.605 3.367,24.402 3.367,25.504C3.367,27.309 4.914,28.457 6.883,28.457L15.742,28.457L15.742,32.605C15.742,35.699 17.5,37.621 20.781,37.621ZM19.773,52.527L36.062,52.527C38.758,52.527 40.305,51.027 40.305,48.309L40.305,44.934C40.305,42.215 38.758,40.668 36.062,40.668L19.773,40.668C17.055,40.668 15.508,42.238 15.508,44.934L15.508,48.309C15.508,51.004 17.055,52.527 19.773,52.527Z" | ||
android:fillColor="@android:color/black"/> | ||
</vector> |
Oops, something went wrong.