-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix: Missing binds in settings #3963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,7 +91,6 @@ export class UserSettingModal extends BaseModal { | |
| activeKeybinds[k] = normalizedValue; | ||
| } | ||
| } | ||
|
|
||
| const values = Object.entries(activeKeybinds) | ||
| .filter(([k]) => k !== action) | ||
| .map(([, v]) => v); | ||
|
|
@@ -401,6 +400,16 @@ export class UserSettingModal extends BaseModal { | |
| @change=${this.handleKeybindChange} | ||
| ></setting-keybind> | ||
|
|
||
| <setting-keybind | ||
| action="resetGfx" | ||
| label=${translateText("user_setting.reset_gfx")} | ||
| description=${translateText("user_setting.reset_gfx_desc")} | ||
| .defaultKey=${this.defaultKeybinds.resetGfx} | ||
| .value=${this.getKeyValue("resetGfx")} | ||
| .display=${this.getKeyChar("resetGfx")} | ||
| @change=${this.handleKeybindChange} | ||
| ></setting-keybind> | ||
|
|
||
| <h2 | ||
| class="text-blue-200 text-xl font-bold mt-8 mb-3 border-b border-white/10 pb-2" | ||
| > | ||
|
|
@@ -639,6 +648,26 @@ export class UserSettingModal extends BaseModal { | |
| @change=${this.handleKeybindChange} | ||
| ></setting-keybind> | ||
|
|
||
| <setting-keybind | ||
| action="selectAllWarships" | ||
| label=${translateText("user_setting.select_all_warships")} | ||
| description=${translateText("user_setting.select_all_warships_desc")} | ||
| .defaultKey=${this.defaultKeybinds.selectAllWarships} | ||
| .value=${this.getKeyValue("selectAllWarships")} | ||
| .display=${this.getKeyChar("selectAllWarships")} | ||
| @change=${this.handleKeybindChange} | ||
| ></setting-keybind> | ||
|
|
||
| <setting-keybind | ||
| action="shiftKey" | ||
| label=${translateText("user_setting.shift_key")} | ||
| description=${translateText("user_setting.shift_key_desc")} | ||
| .defaultKey=${this.defaultKeybinds.shiftKey} | ||
| .value=${this.getKeyValue("shiftKey")} | ||
| .display=${this.getKeyChar("shiftKey")} | ||
| @change=${this.handleKeybindChange} | ||
| ></setting-keybind> | ||
|
Comment on lines
+651
to
+669
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. New warship keybind settings can save combos that gameplay may not execute. These new controls accept modifier combos, but runtime matching for these actions is still not fully modifier-aware. Users can configure valid-looking binds that won’t trigger. 🤖 Prompt for AI Agents |
||
|
|
||
| <h2 | ||
| class="text-blue-200 text-xl font-bold mt-8 mb-3 border-b border-white/10 pb-2" | ||
| > | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.