mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-05-01 06:36:23 +08:00
* fix(macOS): enable undo/redo in webchat composer text input Set `allowsUndo = true` on ChatComposerNSTextView in makeNSView(). NSTextView defaults allowsUndo to false, which prevented Cmd+Z and the Edit menu Undo/Redo items from functioning. Fixes #34898 * fix(macos): enable webchat composer undo/redo (#34962) (thanks @tylerbittner) --------- Co-authored-by: Nimrod Gutman <nimrod.gutman@gmail.com>
16 lines
315 B
Swift
16 lines
315 B
Swift
#if os(macOS)
|
|
import AppKit
|
|
import Testing
|
|
@testable import OpenClawChatUI
|
|
|
|
@Suite
|
|
@MainActor
|
|
struct ChatComposerTextViewTests {
|
|
@Test func configuredComposerTextViewEnablesUndo() {
|
|
let textView = ChatComposerTextViewFactory.makeConfiguredTextView()
|
|
|
|
#expect(textView.allowsUndo)
|
|
}
|
|
}
|
|
#endif
|