陈大猫 and Claude Opus 4.7
ee2c21e712
feat #1044 : close tabs with the middle mouse button ( #1058 )
...
Middle-clicking a tab (mouse wheel click) is a conventional "close tab"
gesture in browsers and editors. Wire it to every closeable tab strip:
the top session / workspace / log-view / editor tabs and the SFTP tab bar.
A small shared helper (lib/tabInteractions.ts) handles the gesture:
onAuxClick closes the tab when button === 1, and onMouseDown calls
preventDefault for the middle button so the Chromium/Electron autoscroll
overlay does not appear. Left-click activation and right-click context
menus are untouched.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-22 22:58:19 +08:00
..
2026-05-21 00:11:51 +08:00
2026-05-18 20:00:10 +08:00
2026-05-12 20:14:24 +08:00
2026-05-06 17:42:28 +08:00
2026-05-18 20:00:10 +08:00
2026-05-18 20:00:10 +08:00
2026-05-21 00:11:51 +08:00
2026-05-22 22:58:19 +08:00
2026-04-16 22:43:19 +08:00
2026-05-22 18:25:38 +08:00
2026-05-18 20:00:10 +08:00
2026-01-29 00:07:14 +08:00
2026-04-22 01:19:33 +08:00
2026-05-21 00:11:51 +08:00
2026-04-21 22:16:49 +08:00
2026-05-12 20:14:24 +08:00
2026-05-12 20:14:24 +08:00
2026-04-12 17:11:50 +08:00
2026-04-10 14:02:24 +08:00
2026-05-18 20:00:10 +08:00
2026-05-12 20:14:24 +08:00
2026-05-12 20:14:24 +08:00
2026-05-12 20:14:24 +08:00
2026-05-07 12:57:54 +08:00
2026-05-07 12:57:54 +08:00
2026-04-05 14:39:39 +08:00
2026-05-12 20:14:24 +08:00
2026-05-13 11:41:36 +08:00
2026-05-12 20:14:24 +08:00
2026-05-07 17:38:17 +08:00
2026-05-11 17:22:12 +08:00
2025-12-17 12:06:28 +08:00
2026-05-06 17:33:46 +08:00
2026-05-06 17:33:46 +08:00
2026-05-06 17:42:28 +08:00
2026-04-21 22:36:52 +08:00
2026-03-23 23:13:58 +08:00
2026-05-12 20:14:24 +08:00
2026-05-12 20:14:24 +08:00
2026-05-06 15:20:23 +08:00
2026-05-12 20:14:24 +08:00
2026-05-12 20:14:24 +08:00
2026-04-22 01:16:38 +08:00
2026-05-18 20:00:10 +08:00
2026-05-09 17:47:45 +08:00
2026-05-18 11:31:50 +08:00
2026-05-18 11:31:50 +08:00
2026-05-18 11:31:50 +08:00
2026-05-12 20:14:24 +08:00
2026-05-12 20:14:24 +08:00
2026-05-22 22:06:03 +08:00
2026-05-20 16:30:25 +08:00
2026-05-22 22:49:15 +08:00
2026-05-20 16:30:25 +08:00
2026-05-18 22:19:54 +08:00
2026-05-18 22:19:54 +08:00
2026-05-18 22:19:54 +08:00
2026-05-18 22:19:54 +08:00
2026-05-01 16:31:58 +08:00
2026-05-18 20:00:10 +08:00
2026-05-18 20:00:10 +08:00
2026-04-08 16:42:32 +08:00
2026-05-22 22:58:19 +08:00
2026-05-18 20:00:10 +08:00
2026-05-12 20:14:24 +08:00
2026-05-06 15:20:23 +08:00
2026-05-20 10:53:20 +08:00
2026-05-20 10:53:20 +08:00