* claim: #5227 * Web: leave Ctrl+Tab and Ctrl+Shift+Tab to the browser (#5227) eframe cancels the default action of every Tab keydown on its canvas (egui moves focus with Tab), so browsers that let a page cancel their shortcuts, such as Vivaldi, could not switch tabs while SolidCraft had the keyboard. A capture listener on the window now stops Ctrl+Tab and Ctrl+Shift+Tab before they reach the canvas, without cancelling them, so the browser acts on them as usual. Plain Tab and Shift+Tab still move between the app's fields. Desktop builds are unchanged. web-api-test checks it in headless Chrome: Ctrl+Tab and Ctrl+Shift+Tab keydowns are not cancelled, Tab still is. --------- Co-authored-by: MateuszSychXpl <151755914+MateuszSychXpl@users.noreply.github.com>
This commit is contained in:
@@ -47,4 +47,5 @@ cargo xtask web-api-test --site dist/web
|
||||
|
||||
The test starts a local server and headless Chrome, discovers commands, creates a box in the
|
||||
live document, checks undo and redo, and verifies error handling and the pending-request limit.
|
||||
It also checks that Ctrl+Tab and Ctrl+Shift+Tab are left to the browser, which switches tabs with them.
|
||||
Set `CHROME` to a Chrome or Chromium executable if it is not installed in a usual location.
|
||||
|
||||
Reference in New Issue
Block a user