dail8859/NotepadNext

Editor Context Menu Location

Fermée

#780 ouverte le 27 mai 2025

 (1 commentaire) (0 réaction) (0 personne assignée)C++ (905 forks)batch import
good first issue

Métriques du dépôt

Stars
 (14 479 étoiles)
Métriques de merge PR
 (Merge moyen 9j 1h) (3 PRs mergées en 30 j)

Description

Description

When right-clicking in the editor there is inconsistent behavior because some commands use the position of the mouse to determine if some things can be used (e.g. a URL), but others need the current caret position (markers).

Describe the solution you'd like

It seems most editors rely on the logic:

  • If the right click is inside a selection, do not change the selection at all, then open the context menu based on the current selection.
  • If the right click is outside the selection, place the caret as the mouse position, then open the context menu based on the new location.

Describe alternatives you've considered

None - Most editors seem to have the described behavior.

Guide contributeur