fix trickplay check and remove debug code
This commit is contained in:
parent
9277bf0556
commit
f1b433195d
|
@ -222,12 +222,7 @@ end sub
|
||||||
|
|
||||||
function onKeyEvent(key as string, press as boolean) as boolean
|
function onKeyEvent(key as string, press as boolean) as boolean
|
||||||
|
|
||||||
' don't do anything if trick play bar is visible
|
if key = "OK" and m.nextEpisodeButton.hasfocus() and not m.top.trickPlayBar.visible
|
||||||
if m.top.trickPlayBar.visible
|
|
||||||
return false
|
|
||||||
end if
|
|
||||||
|
|
||||||
if key = "OK" and m.nextEpisodeButton.hasfocus()
|
|
||||||
m.top.state = "finished"
|
m.top.state = "finished"
|
||||||
hideNextEpisodeButton()
|
hideNextEpisodeButton()
|
||||||
return true
|
return true
|
||||||
|
@ -248,9 +243,8 @@ function onKeyEvent(key as string, press as boolean) as boolean
|
||||||
else if key = "up"
|
else if key = "up"
|
||||||
m.top.selectPlaybackInfoPressed = true
|
m.top.selectPlaybackInfoPressed = true
|
||||||
return true
|
return true
|
||||||
else if key = "OK"
|
|
||||||
print("OK pressed")
|
|
||||||
' OK will play/pause depending on current state
|
' OK will play/pause depending on current state
|
||||||
|
else if key = "OK" and not m.top.trickPlayBar.visible
|
||||||
if m.top.state = "paused"
|
if m.top.state = "paused"
|
||||||
m.top.control = "resume"
|
m.top.control = "resume"
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user