diff options
Diffstat (limited to 'dw/selection.cc')
-rw-r--r-- | dw/selection.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dw/selection.cc b/dw/selection.cc index 9702eee0..1552e80e 100644 --- a/dw/selection.cc +++ b/dw/selection.cc @@ -94,7 +94,11 @@ bool SelectionState::buttonPress (Iterator *it, int charPos, int linkNo, if (!event) return ret; - if (linkNo != -1) { + if (event->button == 3) { + // menu popup + layout->emitLinkPress (itWidget, linkNo, -1, -1, -1, event); + ret = true; + } else if (linkNo != -1) { // link handling (void) layout->emitLinkPress (itWidget, linkNo, -1, -1, -1, event); resetLink (); @@ -134,10 +138,6 @@ bool SelectionState::buttonPress (Iterator *it, int charPos, int linkNo, toChar = correctCharPos (to, charPos); } ret = true; - } else if (event->button == 3) { - // menu popup - layout->emitLinkPress (itWidget, -1, -1, -1, -1, event); - ret = true; } return ret; @@ -302,7 +302,7 @@ void SelectionState::adjustSelection (Iterator *it, int charPos) } } else { if (cmpOld * cmpDiff < 0) { - // The user has reduced the selection. Unighlight the difference. + // The user has reduced the selection. Unhighlight the difference. highlight0 (false, to, 0, newTo, 0, cmpDiff); } |