Skip to content

Commit

Permalink
Fix #441: Change default hyperlink mask from Ctrl to Cmd on OS X to a…
Browse files Browse the repository at this point in the history
…void collision with Ctrl+Click being the 'open the context menu' shortcut there
  • Loading branch information
bobbylight committed Sep 25, 2022
1 parent 3cfacc1 commit 852523e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -2021,7 +2021,8 @@ protected void init() {
setClearWhitespaceLinesEnabled(true);

setHyperlinksEnabled(true);
setLinkScanningMask(InputEvent.CTRL_DOWN_MASK);
int mask = isOSX() ? InputEvent.META_DOWN_MASK : InputEvent.CTRL_DOWN_MASK;
setLinkScanningMask(mask);
setHyperlinkForeground(Color.BLUE);
isScanningForLinks = false;
setUseFocusableTips(true);
Expand Down

0 comments on commit 852523e

Please sign in to comment.