mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-25 18:52:39 +00:00
Use mobile action sheets and long-press file menus while preserving provider context across sheet portals. Keep sidebar and file-pane glyphs on shared visual rails, avoid scrollbar layout shifts, and hide keyboard affordances where shortcuts are unavailable.
12 lines
601 B
TypeScript
12 lines
601 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { keyboardShortcutsAvailable } from "./availability";
|
|
|
|
describe("keyboardShortcutsAvailable", () => {
|
|
it("matches the environments where the shortcut dispatcher runs", () => {
|
|
expect(keyboardShortcutsAvailable({ isNative: false, isCompact: false })).toBe(true);
|
|
expect(keyboardShortcutsAvailable({ isNative: false, isCompact: true })).toBe(false);
|
|
expect(keyboardShortcutsAvailable({ isNative: true, isCompact: false })).toBe(false);
|
|
expect(keyboardShortcutsAvailable({ isNative: true, isCompact: true })).toBe(false);
|
|
});
|
|
});
|