Skip to content

Commit

Permalink
Allow shift right click on SubsEditTextCtrl to get native context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqr committed Apr 5, 2021
1 parent 2d82ed8 commit 848b588
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/subs_edit_ctrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ void SubsTextEditCtrl::Paste() {
}

void SubsTextEditCtrl::OnContextMenu(wxContextMenuEvent& event) {
if (wxGetKeyState(WXK_SHIFT)) {
// Some OS provide extra actions in context menu like RTL display
// Allow user to shift right click to access the native context menu
event.Skip();
return;
}
wxMenu menu;

// Standard actions
Expand Down

0 comments on commit 848b588

Please sign in to comment.