Merge pull request #1 from onefifth/focus_on_break

Focus on break
This commit is contained in:
Zander Milroy 2016-11-02 14:01:44 -04:00 committed by GitHub
commit ef5396b313
2 changed files with 67 additions and 62 deletions

View File

@ -341,6 +341,10 @@ function meta.__index:setActive()
self.active = true
end
function meta.__index:raise()
self.frame:Raise()
end
function meta.__index:onIdleUpdate_( event )
local currentPageIdx = self.sourceBook:GetSelection()
for _, page in pairs( self.sourcePages ) do

View File

@ -224,6 +224,7 @@ function meta.__index:refreshSourcePageFocus_( remoteSource, line )
local clientData = assert( self.clients[clientId] )
local sourceType = string.sub( remoteSource, 1, 1 )
if sourceType == "@" then
self.window:raise()
print( "Setting focus to "..remoteSource.."("..line..")" )
remoteSource = grldc.utilities.normalizePath( string.sub( remoteSource, 2 ) )
local source, remotePath, remoteFile = self:getLocalSource_( clientId, remoteSource )