From 5364139fa746df5cfeb103086415bd18d9a4e80c Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Sun, 22 May 2016 22:16:29 -0700 Subject: [PATCH] Removed `Ctrl-Tab` processing as it should be handled by wxwidgets itself. --- src/editor/editor.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/editor/editor.lua b/src/editor/editor.lua index 9cd7c5cd7c..6c275539cd 100644 --- a/src/editor/editor.lua +++ b/src/editor/editor.lua @@ -1281,13 +1281,11 @@ function CreateEditor(bare) if event:ShiftDown() -- mark selection and scroll to caret then editor:SetCurrentPos(pos) editor:EnsureCaretVisible() else editor:GotoPos(pos) end - elseif mod == wx.wxMOD_RAW_CONTROL and keycode == wx.WXK_PAGEUP - or mod == (wx.wxMOD_RAW_CONTROL + wx.wxMOD_SHIFT) and keycode == wx.WXK_TAB then + elseif mod == wx.wxMOD_RAW_CONTROL and keycode == wx.WXK_PAGEUP then if notebook:GetSelection() == first then notebook:SetSelection(last) else notebook:AdvanceSelection(false) end - elseif mod == wx.wxMOD_RAW_CONTROL - and (keycode == wx.WXK_PAGEDOWN or keycode == wx.WXK_TAB) then + elseif mod == wx.wxMOD_RAW_CONTROL and keycode == wx.WXK_PAGEDOWN then if notebook:GetSelection() == last then notebook:SetSelection(first) else notebook:AdvanceSelection(true) end