Skip to content

Commit 7b2b2eb

Browse files
committed
Fix doc tests
1 parent 2e2d549 commit 7b2b2eb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/astro/src/content/docs/reference/primitive-types.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ It returns a platform-native description of the key combination.
178178

179179
```slint
180180
export component KeysToString inherits FocusScope {
181-
undo := Shortcut {
181+
undo := KeyBinding {
182182
keys: @keys(Control + Z);
183183
activated => { debug("UNDO") }
184184
}
@@ -387,6 +387,5 @@ export component Example {
387387
property<float> xxx1: xxx.to-float(); // 42.1
388388
property<bool> xxx2: xxx.is-float(); // true
389389
property<int> xxx3: 45.8; // 45
390-
property<string> xxx4: @keys(Control + A); // "⌘A" on macOS, "Ctrl+A" on other platforms, etc.
391390
}
392391
```

0 commit comments

Comments
 (0)