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).
This commit is contained in:
Paul Kulchenko
2014-11-14 21:47:31 -08:00
parent e0ab26cb2b
commit cf4e4a9edd

View File

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