diff options
Diffstat (limited to 'core/events.lua')
-rw-r--r-- | core/events.lua | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/core/events.lua b/core/events.lua index 2b3db461..2960b4d8 100644 --- a/core/events.lua +++ b/core/events.lua @@ -252,15 +252,13 @@ add_handler('view_new', buffer.lexer = c.SCLEX_LPEG buffer:set_lexer_language('container') - -- delete Windows/Linux key commands for Mac - if MAC then - buffer:clear_cmd_key(string.byte('Z'), c.SCMOD_CTRL) - buffer:clear_cmd_key(string.byte('Y'), c.SCMOD_CTRL) - buffer:clear_cmd_key(string.byte('X'), c.SCMOD_CTRL) - buffer:clear_cmd_key(string.byte('C'), c.SCMOD_CTRL) - buffer:clear_cmd_key(string.byte('V'), c.SCMOD_CTRL) - buffer:clear_cmd_key(string.byte('A'), c.SCMOD_CTRL) - end + -- allow redefinitions of these key commands + buffer:clear_cmd_key(string.byte('Z'), c.SCMOD_CTRL) + buffer:clear_cmd_key(string.byte('Y'), c.SCMOD_CTRL) + buffer:clear_cmd_key(string.byte('X'), c.SCMOD_CTRL) + buffer:clear_cmd_key(string.byte('C'), c.SCMOD_CTRL) + buffer:clear_cmd_key(string.byte('V'), c.SCMOD_CTRL) + buffer:clear_cmd_key(string.byte('A'), c.SCMOD_CTRL) if _THEME and #_THEME > 0 then local vfile = _THEME..'/view.lua' |