Repository navigation
fix: F5 refreshes the schema everywhere, never reloads - #907
Merged
Merged
Conversation
F5 only refreshed the schema while the SQL editor had focus. Elsewhere it fell through to the webview, and WebView2 (Windows) reloads the page on F5, Ctrl+R and Ctrl+Shift+R, dropping every tab's unsaved work. Tauri 2.12 does not expose WebView2's browser-accelerator setting, so the app handler blocks them: F5 always, the reload chords in release builds. The shortcuts dialog listed Ctrl+Shift+R as a menu refresh that no longer exists; it now lists F5 under Navigation. Closes #898 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #898.
What was wrong
SQLEditor.tsx). Anywhere else the key went through to the webview.Ctrl+Shift+Ras "Refresh schema (menu)". Nothing has bound that key since the native menu started being built fromACTIONS(fix: build the macOS menu from the action list #897).Change
useKeyboardShortcuts:preventDefault.import.meta.env.PROD), Ctrl/Cmd+R, Ctrl/Cmd+Shift+R and Ctrl+F5 are blocked. Dev builds can still reload.actions.ts:refresh-schemagetsshortcut: "F5", so the command palette and the macOS menu show it.Tests
npx vitest run src/hooks src/lib src/components/common: 83 files, 1395 tests pass.npm run type-checkandnpx dprint checkare clean.npm run lintshows 0 errors (160 warnings, all from before this PR).Generated by Claude Code