mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
* feat(app): select sidebar workspaces with Cmd/Ctrl+click and Finder-style Shift ranges Cmd+click on macOS/iOS (Ctrl+click on Windows, Linux and Android) now enters select mode on the clicked row and toggles rows without opening them, matching Shift+click entry. The first modifier click selects only the clicked row and never includes the open workspace, so starting a bulk archive from another row cannot mark the workspace you are reading. Shift+click now rebuilds the range from the anchor on every click instead of only adding to it, so a closer Shift+click shrinks the range and crossing the anchor flips it. Rows picked before the current Shift run are kept, and a Cmd/Ctrl or plain click moves the anchor and commits the range. The primary modifier follows the shortcut layer's `mod` (Meta on mac, Control elsewhere) because Ctrl+click on macOS is the secondary click. The held-key tracker now follows Cmd and Ctrl as well as Shift, since native responder events from a hardware keyboard carry no modifier flags. Both sidebar lists share one press hook instead of duplicating the routing. * fix(app): select on the first tap after a scroll or long press in the sidebar A scroll, swipe, drag, or long-press menu on a workspace row sets the row's long-press flag, and only the drag interaction's press-in clears it. Modifier taps and select-mode taps skip that press-in, so the stale flag swallowed the next Shift/Cmd/Ctrl tap on native hardware keyboards, and the next plain tap in select mode. Those presses never arm the long-press gesture, so the selection press hook now clears the flag when it takes the press-in. * fix(app): keep web context-menu rows clickable after a held press On web, ContextMenuTrigger always handed react-native-web an onLongPress, even though the web menu opens on right-click and the handler did nothing there. With any onLongPress set, react-native-web marks a press held past the long-press delay as a long press and cancels the click that ends it. Only the next responder grant clears that mark, and react-native-web grants none to Ctrl or Alt mousedowns. So a slow click on a sidebar row did not open it, and on Windows/Linux the next Ctrl+click on that row was dropped too. On web the trigger now passes only the caller's onLongPress. * fix(app): stop selecting presses from reading the row's long-press flag The selection press path cleared and honored the row's long-press flag, but only the drag interaction's press-in resets that flag. A Ctrl+click on web gets no press-in, so a flag left by an earlier touch swipe or scroll on the row swallowed it. Selecting presses never arm the long-press gesture, and a native long press already cancels the press, so the selection path no longer reads the flag at all. Navigation keeps its own guard.