From cf4e4a9eddfa9e23afe7e1b67ad371ff83c8cd37 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Fri, 14 Nov 2014 21:47:31 -0800 Subject: [PATCH] Added setting explicit focus on preview tab in commandbar (#31). This is to fix a strange issue with the cursor in the text control on the commandbar being in the wrong location (on Windows). --- src/editor/menu_edit.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/menu_edit.lua b/src/editor/menu_edit.lua index 0340541c12..fa875f690a 100644 --- a/src/editor/menu_edit.lua +++ b/src/editor/menu_edit.lua @@ -434,6 +434,7 @@ local function navigateToFile() preview = preview or NewFile() preview:SetEvtHandlerEnabled(false) LoadFile(file, preview, true, true) + preview:SetFocus() preview:SetEvtHandlerEnabled(true) end nb:SetEvtHandlerEnabled(true)