Hold the page number key for one second to jump to the status page.
A tap still goes to the start page, now on release so a hold does not flash through page 1 first. Hold time is nav_hold_ms in config.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -561,7 +561,12 @@ class TestPage(unittest.TestCase):
|
||||
key = self.controls[r]["0"]
|
||||
self.assertEqual(key["type"], "button-layered")
|
||||
self.assertTrue(key["options"]["notes"].startswith("STATUS nav key (%s)" % kind))
|
||||
self.assertEqual(key["steps"]["0"]["action_sets"]["down"][0]["definitionId"], action)
|
||||
step = key["steps"]["0"]
|
||||
self.assertEqual(step["action_sets"]["down"], [])
|
||||
tap, hold = step["action_sets"]["up"][0], step["action_sets"]["1000"][0]
|
||||
self.assertEqual((tap["definitionId"], tap["options"]["page"]["value"]), (action, "startup"))
|
||||
self.assertEqual((hold["definitionId"], hold["options"]["page"]["value"]), ("set_page", 19))
|
||||
self.assertEqual(step["options"]["runWhileHeld"], [1000])
|
||||
box = [l for l in key["style"]["layers"] if l["type"] == "box"][0]
|
||||
self.assertTrue(box["color"]["isExpression"])
|
||||
self.assertIn("'$.all.b'", box["color"]["value"]) # follows the ALL button
|
||||
|
||||
Reference in New Issue
Block a user