From 985cb75a865b3fbcb6d1f095091589275bccab02 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 3 Jul 2020 08:15:46 -0400 Subject: Updated LuaDoc noting that `view.MOD_*` is different on Mac. --- core/events.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/events.lua b/core/events.lua index 2def3686..bdef3cc9 100644 --- a/core/events.lua +++ b/core/events.lua @@ -91,6 +91,8 @@ local M = {} -- * _`line`_: The line number of the position double-clicked. -- * _`modifiers`_: A bit-mask of any modifier keys used: `view.MOD_CTRL`, -- `view.MOD_SHIFT`, `view.MOD_ALT`, and `view.MOD_META`. +-- On Mac OSX, the Command modifier key is reported as `view.MOD_CTRL` and +-- Ctrl is `view.MOD_META`. -- Note: If you set `view.rectangular_selection_modifier` to -- `view.MOD_CTRL`, the "Control" modifier is reported as *both* "Control" -- and "Alt" due to a Scintilla limitation with GTK. @@ -140,6 +142,8 @@ local M = {} -- * _`position`_: The clicked text's position. -- * _`modifiers`_: A bit-mask of any modifier keys used: `view.MOD_CTRL`, -- `view.MOD_SHIFT`, `view.MOD_ALT`, and `view.MOD_META`. +-- On Mac OSX, the Command modifier key is reported as `view.MOD_CTRL` and +-- Ctrl is `view.MOD_META`. -- Note: If you set `view.rectangular_selection_modifier` to -- `view.MOD_CTRL`, the "Control" modifier is reported as *both* "Control" -- and "Alt" due to a Scintilla limitation with GTK. @@ -170,6 +174,8 @@ local M = {} -- * _`position`_: The beginning position of the clicked margin's line. -- * _`modifiers`_: A bit-mask of any modifier keys used: `view.MOD_CTRL`, -- `view.MOD_SHIFT`, `view.MOD_ALT`, and `view.MOD_META`. +-- On Mac OSX, the Command modifier key is reported as `view.MOD_CTRL` and +-- Ctrl is `view.MOD_META`. -- Note: If you set `view.rectangular_selection_modifier` to -- `view.MOD_CTRL`, the "Control" modifier is reported as *both* "Control" -- and "Alt" due to a Scintilla limitation with GTK. -- cgit v1.2.3