mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
Terminal+LibVT: Switch Terminal to using explicit copy/paste actions
Instead of implicitly copying whatever you select, and pasting when you middle-click, let's have traditional copy and paste actions bound to Ctrl+Shift+C and Ctrl+Shift+V respectively.
This commit is contained in:
parent
6fa26c73e2
commit
dbf8d6bc1e
3 changed files with 43 additions and 14 deletions
|
@ -210,6 +210,11 @@ int main(int argc, char** argv)
|
|||
}));
|
||||
menubar->add_menu(move(app_menu));
|
||||
|
||||
auto edit_menu = make<GMenu>("Edit");
|
||||
edit_menu->add_action(terminal->copy_action());
|
||||
edit_menu->add_action(terminal->paste_action());
|
||||
menubar->add_menu(move(edit_menu));
|
||||
|
||||
auto font_menu = make<GMenu>("Font");
|
||||
GFontDatabase::the().for_each_fixed_width_font([&](const StringView& font_name) {
|
||||
font_menu->add_action(GAction::create(font_name, [&](const GAction& action) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue