Closed Mikanoshi closed 5 years ago
What's wrong with No.1 ?
Ctrl+Z
Shortcut is still without +
Too soon :) Inserting text with new lines misplaces the last one (or all?), e.g. "1\n\n2" results in
```
1
2
```
Also when pasting text with new lines it just removes them all.
&platform-cmd-mod;
returns different strings on 6143 (Ctrl+) and on 6172 and above (Ctrl).
Windows 10 1803
6172 is the correct one. &platform-cmd-mod;
yields to CTRL
(Windows,Linux) or to ⌘
on MacOS.
+
must not be included.
6195:
Both above problems remain in 4.2.5.0 (only End + pasting text without new lines was fixed).
4.2.5.1:
4.2.6.1:
4.2.6.8:
4.2.6.10:
$(plaintext).state.focus = true
stopped working (when plaintext wasn't previously focused)
Same thing with inserting text, does not work right after document load, you need to click on plaintext first: $(plaintext).execCommand("edit:insert-text", "test")
~~Doing this on an empty plaintext made above commands work, but not anymore.
if (pt.selection.caret === null) pt.selection.select(pt, #content);
~
~1. In 6175:~ ~2.~
Result is
instead of
If inserted string is
\n2\n3\n4\n
then last new line after 4 is missing. This code works:~3. Caret always disappears after opening context menu. https://sciter.com/forums/topic/caret-coordinates/#post-57569 And how to set input focus to plaintext programmatically without selecting a specific text node, just make caret appear at the same position it was before input focus was removed?~
~4. What's going on with the caret? Why it can't stand still? :) https://sciter.com/forums/topic/change-event-is-unreliable/#post-57593~