mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:37:34 +00:00
LibVT: Add a context menu to TerminalWidget
Starting with only the copy and paste actions. But I'm sure we can come up with some more things to put here. :^)
This commit is contained in:
parent
dbf8d6bc1e
commit
dabdd484f7
2 changed files with 14 additions and 0 deletions
|
@ -72,6 +72,7 @@ private:
|
|||
virtual void doubleclick_event(GMouseEvent&) override;
|
||||
virtual void focusin_event(CEvent&) override;
|
||||
virtual void focusout_event(CEvent&) override;
|
||||
virtual void context_menu_event(GContextMenuEvent&) override;
|
||||
|
||||
// ^TerminalClient
|
||||
virtual void beep() override;
|
||||
|
@ -128,5 +129,7 @@ private:
|
|||
RefPtr<GAction> m_copy_action;
|
||||
RefPtr<GAction> m_paste_action;
|
||||
|
||||
OwnPtr<GMenu> m_context_menu;
|
||||
|
||||
CElapsedTimer m_triple_click_timer;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue