2bc8c1b87d
Adapt typing/voice surfaces for iPad width and height, add the system globe key and last-input editing flow, harden host-only Rime deployment, and remove clipboard voice commands. Bump build to 61.
20 lines
507 B
Swift
20 lines
507 B
Swift
// KeyboardOpenSurfacePolicy.swift
|
|
// OSGKeyboard · Shared
|
|
//
|
|
// Pure open-surface decision used by the keyboard extension.
|
|
|
|
import Foundation
|
|
|
|
public enum KeyboardOpenSurfacePolicy: Sendable {
|
|
/// Surface to show on the first frame of a keyboard presentation.
|
|
public static func resolve(
|
|
locksTypingSurface: Bool,
|
|
preferred: KeyboardState.Surface
|
|
) -> KeyboardState.Surface {
|
|
if locksTypingSurface {
|
|
return .voice
|
|
}
|
|
return preferred
|
|
}
|
|
}
|