Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix(kit): let Return pick input method candidates on the Mac

leepokai0c2ff4066bc5
diff --git a/kit/Sources/CodyncUI/Platform.swift b/kit/Sources/CodyncUI/Platform.swift
index df107eac..ca257adc 100644
--- a/kit/Sources/CodyncUI/Platform.swift
+++ b/kit/Sources/CodyncUI/Platform.swift
@@ -52,10 +52,14 @@ extension View {
}
/// Mac: Return sends, Shift-Return adds a new line. iPhone keeps Return as a new line.
+ /// While an input method (Zhuyin, Pinyin, Japanese…) is composing, Return picks the candidate instead.
@ViewBuilder func sendOnReturn(_ send: @escaping () -> Void) -> some View {
#if os(macOS)
onKeyPress(.return, phases: .down) { press in
guard !press.modifiers.contains(.shift) else { return .ignored }
+ if let editor = NSApp.keyWindow?.firstResponder as? NSTextView, editor.hasMarkedText() {
+ return .ignored
+ }
send()
return .handled
}