aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-03-11 11:53:51 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-03-11 11:53:51 -0400
commitb5f2447ac8cf59bfba1118dcc9a24b9ae7c6b904 (patch)
treec8ede491b516d6e8a8ba7c965d9bf25960fd7b72
parentac016d43a7fbabe0d0af96eeda30e70f5995ea13 (diff)
downloadtextadept-b5f2447ac8cf59bfba1118dcc9a24b9ae7c6b904.tar.gz
textadept-b5f2447ac8cf59bfba1118dcc9a24b9ae7c6b904.zip
Temporarily restore definition of `keys.LANGUAGE_MODULE_PREFIX`.
This is to avoid 3rd party language module breakage in 7.x. Will be removed in 8.0.
-rw-r--r--CHANGELOG.md1
-rw-r--r--core/keys.lua1
2 files changed, 1 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7f698a87..2477b5df 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -34,7 +34,6 @@ Changes:
* Added Fish lexer.
* Merged `events.FILE_SAVED_AS` into [`events.FILE_AFTER_SAVE`][] as a new
parameter.
-* Removed `keys.LANGUAGE_MODULE_PREFIX` field, but left the prefix unbound.
* Merged `textadept.file_types.shebangs` into
[`textadept.file_types.patterns`][].
* Removed `io.boms`.
diff --git a/core/keys.lua b/core/keys.lua
index 5dfa50ae..e55f71d0 100644
--- a/core/keys.lua
+++ b/core/keys.lua
@@ -113,6 +113,7 @@ module('keys')]]
local CTRL, ALT, META, SHIFT = 'c', not CURSES and 'a' or 'm', 'm', 's'
M.CLEAR = 'esc'
+M.LANGUAGE_MODULE_PREFIX = (not OSX and not CURSES and CTRL or META)..'l'
---
-- Lookup table for string representations of key codes higher than 255.