Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI/Qt: Simplify link context menu and update keyboard shortcuts #1505

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

rmg-x
Copy link
Contributor

@rmg-x rmg-x commented Sep 23, 2024

Removes the unnecessary separator, redundant open action, and changes shortcuts to match other browsers.

m_link_context_menu_copy_url_action->setIcon(load_icon_from_uri("resource://icons/16x16/edit-copy.png"sv));
QObject::connect(m_link_context_menu_copy_url_action, &QAction::triggered, this, [this]() {
copy_link_url(m_link_context_menu_url);
});

m_link_context_menu = new QMenu("Link context menu", this);
m_link_context_menu->addAction(open_link_in_new_tab_action);
m_link_context_menu->addAction(open_link_action);
m_link_context_menu->addSeparator();
m_link_context_menu->addAction(m_link_context_menu_copy_url_action);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a separator in between Open Link in New Tab and Copy Link?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, only because it has a few options now.

Ladybird/Qt/Tab.cpp Outdated Show resolved Hide resolved
Removes the unnecessary separator, redundant open action, and changes
shortcuts to match other browsers.
@AtkinsSJ AtkinsSJ merged commit 1f365ba into LadybirdBrowser:master Oct 4, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants