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:
Aliaksandr Kalenik
2024-03-22 11:56:49 +01:00
committed by Tim Flynn
parent d5c6e45dca
commit 561e011e07
15 changed files with 82 additions and 4 deletions

View File

@@ -430,6 +430,7 @@ Tab::Tab(BrowserWindow* window, WebContentOptions const& web_content_options, St
m_page_context_menu->addAction(&m_window->reload_action());
m_page_context_menu->addSeparator();
m_page_context_menu->addAction(&m_window->copy_selection_action());
m_page_context_menu->addAction(&m_window->paste_action());
m_page_context_menu->addAction(&m_window->select_all_action());
m_page_context_menu->addSeparator();
m_page_context_menu->addAction(search_selected_text_action);