LibVT: Write emoji to the pseudo-terminal master fd on emoji input
... instead of inserting it into the current output character stream that the terminal widget is going to render. This ensures that the emoji gets sent to the foreground process of the terminal.
This commit is contained in:
parent
d0e3065ced
commit
49467c6ec2
Notes:
sideshowbarker
2024-07-17 23:07:41 +09:00
Author: https://github.com/ronak69 Commit: https://github.com/SerenityOS/serenity/commit/49467c6ec2 Pull-request: https://github.com/SerenityOS/serenity/pull/22999 Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ TerminalWidget::TerminalWidget(int ptm_fd, bool automatic_size_policy)
|
|||
set_pty_master_fd(ptm_fd);
|
||||
|
||||
on_emoji_input = [this](auto emoji) {
|
||||
inject_string(emoji);
|
||||
emit(emoji.bytes().data(), emoji.length());
|
||||
};
|
||||
|
||||
m_cursor_blink_timer = add<Core::Timer>();
|
||||
|
|
Loading…
Add table
Reference in a new issue