mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
Everywhere: Rename left/right-click to primary/secondary
This resolves #10641.
This commit is contained in:
parent
a6ccf6659a
commit
d6a0726302
79 changed files with 183 additions and 183 deletions
|
@ -311,7 +311,7 @@ void Editor::mousedown_event(GUI::MouseEvent& event)
|
|||
|
||||
auto text_position = text_position_at(event.position());
|
||||
auto ruler_line_rect = ruler_content_rect(text_position.line());
|
||||
if (event.button() == GUI::MouseButton::Left && event.position().x() < ruler_line_rect.width()) {
|
||||
if (event.button() == GUI::MouseButton::Primary && event.position().x() < ruler_line_rect.width()) {
|
||||
if (!breakpoint_lines().contains_slow(text_position.line())) {
|
||||
breakpoint_lines().append(text_position.line());
|
||||
Debugger::the().on_breakpoint_change(wrapper().filename_label().text(), text_position.line(), BreakpointChange::Added);
|
||||
|
|
|
@ -37,7 +37,7 @@ GitFilesView::GitFilesView(GitFileActionCallback callback, NonnullRefPtr<Gfx::Bi
|
|||
|
||||
void GitFilesView::mousedown_event(GUI::MouseEvent& event)
|
||||
{
|
||||
if (event.button() != GUI::MouseButton::Left) {
|
||||
if (event.button() != GUI::MouseButton::Primary) {
|
||||
ListView::mousedown_event(event);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ void FlameGraphView::mousemove_event(GUI::MouseEvent& event)
|
|||
|
||||
void FlameGraphView::mousedown_event(GUI::MouseEvent& event)
|
||||
{
|
||||
if (event.button() != GUI::MouseButton::Left)
|
||||
if (event.button() != GUI::MouseButton::Primary)
|
||||
return;
|
||||
|
||||
if (!m_hovered_bar)
|
||||
|
|
|
@ -66,7 +66,7 @@ void TimelineHeader::update_selection()
|
|||
|
||||
void TimelineHeader::mousedown_event(GUI::MouseEvent& event)
|
||||
{
|
||||
if (event.button() != GUI::MouseButton::Left)
|
||||
if (event.button() != GUI::MouseButton::Primary)
|
||||
return;
|
||||
m_selected = !m_selected;
|
||||
on_selection_change(m_selected);
|
||||
|
|
|
@ -31,7 +31,7 @@ u64 TimelineView::timestamp_at_x(int x) const
|
|||
|
||||
void TimelineView::mousedown_event(GUI::MouseEvent& event)
|
||||
{
|
||||
if (event.button() != GUI::MouseButton::Left)
|
||||
if (event.button() != GUI::MouseButton::Primary)
|
||||
return;
|
||||
|
||||
set_selecting(true);
|
||||
|
@ -55,7 +55,7 @@ void TimelineView::mousemove_event(GUI::MouseEvent& event)
|
|||
|
||||
void TimelineView::mouseup_event(GUI::MouseEvent& event)
|
||||
{
|
||||
if (event.button() != GUI::MouseButton::Left)
|
||||
if (event.button() != GUI::MouseButton::Primary)
|
||||
return;
|
||||
|
||||
set_selecting(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue