summaryrefslogtreecommitdiff
path: root/test/macos_e2e.swift
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-27 22:18:32 -0300
committerGabriel Schneider <[email protected]>2026-11-27 22:18:32 -0300
commit3899f66a8c81d85dfb8f9ad18481bfff110c5d99 (patch)
treeab637a2af0f27f24f998d91871ef278702e09965 /test/macos_e2e.swift
parentf65aaf7c569f3238b15e6e7bb0d3c28ffb244c69 (diff)
downloadpardes-3899f66a8c81d85dfb8f9ad18481bfff110c5d99.tar.gz
pardes-3899f66a8c81d85dfb8f9ad18481bfff110c5d99.zip
Advance the native macOS clock for delayed leader hintsHEADmain
Give the core the host monotonic time in the AppKit pump and animation callback so a Space prefix starts its hint delay and redraws when it expires. Keep scroll and rotation momentum on their existing frame timer. Verified that the native Space-only regression fails before this fix and passes afterward.
Diffstat (limited to 'test/macos_e2e.swift')
-rw-r--r--test/macos_e2e.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/macos_e2e.swift b/test/macos_e2e.swift
index 4438e942..a4998d39 100644
--- a/test/macos_e2e.swift
+++ b/test/macos_e2e.swift
@@ -1187,6 +1187,7 @@ private final class Driver: PardesViewDelegate {
/// `pgup`/`pageup`) so a script reads the same in either suite.
private func keyStroke(_ name: String) throws -> (cp: UInt32, mods: UInt32) {
switch name {
+ case "space": return (32, 0)
case "enter", "ret": return (UInt32(PARDES_KEY_ENTER), 0)
case "escape", "esc": return (UInt32(PARDES_KEY_ESCAPE), 0)
case "tab": return (UInt32(PARDES_KEY_TAB), 0)