mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 16:28:48 +00:00
AK: Revert Eternal<T> for now since it doesn't work as intended.
This commit is contained in:
parent
fb6dc5350d
commit
bcc00857a4
Notes:
sideshowbarker
2024-07-19 14:48:55 +09:00
Author: https://github.com/awesomekling
Commit: bcc00857a4
14 changed files with 51 additions and 67 deletions
|
@ -785,7 +785,7 @@ void GTextEditor::cut()
|
|||
{
|
||||
auto selected_text = this->selected_text();
|
||||
printf("Cut: \"%s\"\n", selected_text.characters());
|
||||
GClipboard::set_data(selected_text);
|
||||
GClipboard::the().set_data(selected_text);
|
||||
delete_selection();
|
||||
}
|
||||
|
||||
|
@ -793,12 +793,12 @@ void GTextEditor::copy()
|
|||
{
|
||||
auto selected_text = this->selected_text();
|
||||
printf("Copy: \"%s\"\n", selected_text.characters());
|
||||
GClipboard::set_data(selected_text);
|
||||
GClipboard::the().set_data(selected_text);
|
||||
}
|
||||
|
||||
void GTextEditor::paste()
|
||||
{
|
||||
auto paste_text = GClipboard::data();
|
||||
auto paste_text = GClipboard::the().data();
|
||||
printf("Paste: \"%s\"\n", paste_text.characters());
|
||||
insert_at_cursor_or_replace_selection(paste_text);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue