KeyHandler // +isIntonationKey.

This commit is contained in:
ShikiSuen 2022-08-23 12:53:06 +08:00
parent 4143b45770
commit 8f9578633c
1 changed files with 10 additions and 0 deletions

View File

@ -381,6 +381,16 @@ public class KeyHandler {
return (rawData, rawDataSansIntonation, hasIntonation) return (rawData, rawDataSansIntonation, hasIntonation)
} }
/// 調
/// - Parameter input:
/// - Returns: 調
func isIntonationKey(_ input: InputSignal) -> Bool {
var theComposer = composer //
theComposer.clear() //
theComposer.receiveKey(fromCharCode: input.charCode)
return theComposer.hasToneMarker(withNothingElse: true)
}
// MARK: - Extracted methods and functions (Megrez). // MARK: - Extracted methods and functions (Megrez).
/// ///