Close video on error

This commit is contained in:
Brahim Hadriche committed 2022-11-18 13:14:24 -05:00
1 parent 2f2516eade
commit 92cfaf98a0
2 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ function onKeyEvent(key as string, press as boolean) as boolean
' Can only escape to home screen, at index 1
allowedEscapes = { "1": true }
if allowedEscapes[StrI(m.top.focusIndex).Trim()] = true
m.top.escapeIndex =m.top.focusIndex
m.top.escapeIndex = m.top.focusIndex
m.top.focusIndex = -1
return true
end if