Removed Ctrl-Tab processing as it should be handled by wxwidgets itself.

This commit is contained in:
Paul Kulchenko
2016-05-22 22:16:29 -07:00
parent 80be064d80
commit 5364139fa7

View File

@@ -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