aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-07-09 09:49:22 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2012-07-09 09:49:22 -0400
commita1d714eaeec69d359b8de54ac00d0fc621b96fa2 (patch)
treec0ab27e397150a781efd329750a97ee99a90a5b6 /modules
parent26d69b89c9f25e1b42c9372966822ab039fe42e2 (diff)
downloadtextadept-a1d714eaeec69d359b8de54ac00d0fc621b96fa2.tar.gz
textadept-a1d714eaeec69d359b8de54ac00d0fc621b96fa2.zip
Ignore Fn-key combinations on Mac OSX.
GTKOSX passes a keycode that confuses Scintilla, which inserts a 'DLE' char.
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/keys.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index 4c9d68a0..e3d7eaed 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -405,6 +405,9 @@ if OSX or NCURSES then
keys.mU = buffer.page_up_extend
keys.mD = buffer.page_down_extend
end
+ -- GTKOSX reports Fn-key as a single keycode which confuses Scintilla. Do not
+ -- propagate it.
+ keys.fn = function() return true end
end
return M