mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
LibGUI: Make the Clipboard API deal in raw byte buffers a bit more
To open up for putting not just text/plain content on the clipboard, let's make the GUI::Clipboard API a bit more raw-data-friendly. :^)
This commit is contained in:
parent
802f541184
commit
51146e3075
Notes:
sideshowbarker
2024-07-19 02:54:42 +09:00
Author: https://github.com/awesomekling
Commit: 51146e3075
12 changed files with 43 additions and 38 deletions
|
@ -66,7 +66,7 @@ InProcessWebView::InProcessWebView()
|
|||
set_background_role(ColorRole::Base);
|
||||
|
||||
m_copy_action = GUI::CommonActions::make_copy_action([this](auto&) {
|
||||
GUI::Clipboard::the().set_data(selected_text(), "text/plain");
|
||||
GUI::Clipboard::the().set_plain_text(selected_text());
|
||||
});
|
||||
|
||||
m_select_all_action = GUI::CommonActions::make_select_all_action([this](auto&) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue