mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb+WebContent+Ladybird: Add ability to paste text from clipboard
Text can be pasted by pressing Ctrl/Cmd+V or by using button in the context menu. For now only the Qt client is supported.
This commit is contained in:
committed by
Tim Flynn
parent
d5c6e45dca
commit
561e011e07
@@ -165,6 +165,11 @@ void ViewImplementation::select_all()
|
||||
client().async_select_all(page_id());
|
||||
}
|
||||
|
||||
void ViewImplementation::paste(String const& text)
|
||||
{
|
||||
client().async_paste(page_id(), text);
|
||||
}
|
||||
|
||||
void ViewImplementation::get_source()
|
||||
{
|
||||
client().async_get_source(page_id());
|
||||
|
||||
Reference in New Issue
Block a user