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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user