Fix video selection bug (#419)
* Fix video selection bug * Refactor key handling * comment
This commit is contained in:
1 parent
896d0b9bf3
commit
ebc5d81180
28 files changed
+216
-160
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import "pkg:/source/utils/RemoteKeys.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
function Init()
|
||||
@@ -41,12 +42,12 @@ function OnDisabledChange()
|
||||
m.top.focusable = not disabled
|
||||
end function
|
||||
|
||||
function OnkeyEvent(key as string, press as boolean) as boolean
|
||||
function OnKeyEvent(key as string, press as boolean) as boolean
|
||||
if not press
|
||||
return false
|
||||
end if
|
||||
|
||||
if key = "OK"
|
||||
if key = RemoteKeys.Ok
|
||||
disabled = m.top.disabled
|
||||
if not disabled
|
||||
m.top.buttonSelected = true
|
||||
|
||||
Reference in new issue
Block a user