mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-12-01 00:49:33 +01:00
fix(web): scroll to the prompt on iOS native input (#830)
The native owner bypasses xterm triggerDataEvent, so scrollOnUserInput never ran; scroll before sending. Derive the local-echo overlay switch from the echo policy instead of a second mode check. Link docs/ios-native-input.md and describe Pane B input ownership on iOS.
This commit is contained in:
1 parent
db5ab5a701
commit
eb22f10fd4
4 files changed
+46
-13
No files matched your search
@@ -314,6 +314,18 @@
|
||||
reconciling = true;
|
||||
try {
|
||||
if (ops.length) {
|
||||
// These ops bypass xterm's triggerDataEvent(data, true), so its
|
||||
// scrollOnUserInput never runs; scroll to the prompt as xterm would.
|
||||
try {
|
||||
if (
|
||||
terminal.options &&
|
||||
terminal.options.scrollOnUserInput !== false &&
|
||||
typeof terminal.scrollToBottom === 'function'
|
||||
)
|
||||
terminal.scrollToBottom();
|
||||
} catch (error) {
|
||||
record({ type: 'error', hook: 'scrollOnUserInput', error });
|
||||
}
|
||||
try {
|
||||
sendTransaction(ops);
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user