Refresh lint rules (#238)
* Lint * Color rules * Update sponsorblock config file * Small tweak * Color adjustments
This commit is contained in:
1 parent
cbda8dbf9b
commit
e53ad785c6
89 files changed
+445
-468
No files matched your search
@@ -3,7 +3,7 @@ const OPTIONS_LONG_PRESS_KEY = "OPTIONS_LONG_PRESS"
|
||||
|
||||
function InitializeLongPress(keys as object, duration = 1.0 as float)
|
||||
longPressKeyMap = {
|
||||
"OK": OK_LONG_PRESS_KEY,
|
||||
"OK": OK_LONG_PRESS_KEY
|
||||
"options": OPTIONS_LONG_PRESS_KEY
|
||||
}
|
||||
m._longPressKeyMap = {}
|
||||
@@ -17,7 +17,7 @@ function InitializeLongPress(keys as object, duration = 1.0 as float)
|
||||
' - press K to simulate an "OK" long press on the remote.
|
||||
' - press O to simulate an "options" long press on the remote.
|
||||
simulatedLongPressKeyMap = {
|
||||
"OK": "Lit_k",
|
||||
"OK": "Lit_k"
|
||||
"options": "Lit_o"
|
||||
}
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ function SetNavigation(fromNode as object, direction as string, toNode as object
|
||||
end if
|
||||
|
||||
m._navigation[direction].push({
|
||||
fromNode: fromNode,
|
||||
toNode: toNode,
|
||||
fromNode: fromNode
|
||||
toNode: toNode
|
||||
callback: callback
|
||||
})
|
||||
end function
|
||||
@@ -19,7 +19,7 @@ end function
|
||||
function NavigationKeyHandler(key as string, press as boolean) as object
|
||||
if not press
|
||||
return {
|
||||
handled: false,
|
||||
handled: false
|
||||
node: invalid
|
||||
}
|
||||
end if
|
||||
@@ -27,7 +27,7 @@ function NavigationKeyHandler(key as string, press as boolean) as object
|
||||
navigations = m._navigation[key]
|
||||
if navigations = invalid
|
||||
return {
|
||||
handled: false,
|
||||
handled: false
|
||||
node: invalid
|
||||
}
|
||||
end if
|
||||
@@ -41,13 +41,13 @@ function NavigationKeyHandler(key as string, press as boolean) as object
|
||||
item.callback()
|
||||
end if
|
||||
return {
|
||||
handled: true,
|
||||
handled: true
|
||||
node: item.toNode
|
||||
}
|
||||
end if
|
||||
end for
|
||||
return {
|
||||
handled: false,
|
||||
handled: false
|
||||
node: invalid
|
||||
}
|
||||
end function
|
||||
Reference in new issue
Block a user