Long-press and short-then-long with a context menu open switches between context menus

This commit is contained in:
James Babcock committed 2026-09-01 21:38:52 -07:00
1 parent c364099a8c
commit fddb6ea886
5 files changed
+37

No files matched your search

+7
View File
@@ -27,6 +27,13 @@ export type InputEventPayload =
| { type: "long-press-release"; source: InputSource }
/** G2 2.2.9 tap-then-hold gesture, reserved for the shell system menu. */
| { type: "short-then-long-press"; source: InputSource }
/**
* Not a gesture: a shell -> foreground-window notification that the shell
* opened its system context menu over the window. An app with its own
* context menu up closes it in response, so the two menus never stack.
* Everything else ignores it.
*/
| { type: "system-menu-opened" }
/**
* Spatial (four-way) input, which only a watch can produce: the ring's
* scroll is a one-dimensional cursor, these are directions. Components with