1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 00:47:45 +00:00

Ladybird: Add common handy actions to context menu

This commit adds the common actions you'd expect to the Ladybird context
menu, arranged like so:

	┌──────────────────────────────┐
	│  Go Back           Alt+Left  │
	│  Go Forward        Alt+Right │
	│  Reload            Ctrl+R    │
	│ ──────────────────────────── │
	│  Copy              Ctrl+C    │
	│  Select All        Ctrl+A    │
	│ ──────────────────────────── │
	│  View Source       Ctrl+U    │
	│  Inspect Element             │
	└──────────────────────────────┘
This commit is contained in:
MacDue 2023-05-13 13:07:12 +01:00 committed by Andreas Kling
parent 2b269cf425
commit 404804db36
4 changed files with 65 additions and 35 deletions

View file

@ -67,10 +67,6 @@ private:
QString m_title;
QLabel* m_hover_label { nullptr };
OwnPtr<QAction> m_back_action;
OwnPtr<QAction> m_forward_action;
OwnPtr<QAction> m_reload_action;
int tab_index();
bool m_is_history_navigation { false };