mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +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
|
@ -48,6 +48,12 @@ public:
|
|||
|
||||
bool is_scrollable() const;
|
||||
|
||||
GAction& copy_action() { return *m_copy_action; }
|
||||
GAction& paste_action() { return *m_paste_action; }
|
||||
|
||||
void copy();
|
||||
void paste();
|
||||
|
||||
virtual bool accepts_focus() const override { return true; }
|
||||
|
||||
Function<void(const StringView&)> on_title_change;
|
||||
|
@ -119,5 +125,8 @@ private:
|
|||
|
||||
RefPtr<GScrollBar> m_scrollbar;
|
||||
|
||||
RefPtr<GAction> m_copy_action;
|
||||
RefPtr<GAction> m_paste_action;
|
||||
|
||||
CElapsedTimer m_triple_click_timer;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue