mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:04:57 +00:00
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
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
Add a link
Reference in a new issue