Text related keybinds can now be changed in Controls (#35630)

* Add ability to rebind text related keybinds

* fix placement of locales
This commit is contained in:
Łukasz Mędrek
2025-03-08 02:42:50 +00:00
committed by GitHub
parent 67f2c1ed58
commit 0be41cebb9
2 changed files with 86 additions and 0 deletions

View File

@@ -265,6 +265,51 @@ namespace Content.Client.Options.UI.Tabs
AddButton(EngineKeyFunctions.HideUI); AddButton(EngineKeyFunctions.HideUI);
AddButton(ContentKeyFunctions.InspectEntity); AddButton(ContentKeyFunctions.InspectEntity);
AddHeader("ui-options-header-text-cursor");
AddButton(EngineKeyFunctions.TextCursorLeft);
AddButton(EngineKeyFunctions.TextCursorRight);
AddButton(EngineKeyFunctions.TextCursorUp);
AddButton(EngineKeyFunctions.TextCursorDown);
AddButton(EngineKeyFunctions.TextCursorWordLeft);
AddButton(EngineKeyFunctions.TextCursorWordRight);
AddButton(EngineKeyFunctions.TextCursorBegin);
AddButton(EngineKeyFunctions.TextCursorEnd);
AddHeader("ui-options-header-text-cursor-select");
AddButton(EngineKeyFunctions.TextCursorSelect);
AddButton(EngineKeyFunctions.TextCursorSelectLeft);
AddButton(EngineKeyFunctions.TextCursorSelectRight);
AddButton(EngineKeyFunctions.TextCursorSelectUp);
AddButton(EngineKeyFunctions.TextCursorSelectDown);
AddButton(EngineKeyFunctions.TextCursorSelectWordLeft);
AddButton(EngineKeyFunctions.TextCursorSelectWordRight);
AddButton(EngineKeyFunctions.TextCursorSelectBegin);
AddButton(EngineKeyFunctions.TextCursorSelectEnd);
AddHeader("ui-options-header-text-edit");
AddButton(EngineKeyFunctions.TextBackspace);
AddButton(EngineKeyFunctions.TextDelete);
AddButton(EngineKeyFunctions.TextWordBackspace);
AddButton(EngineKeyFunctions.TextWordDelete);
AddButton(EngineKeyFunctions.TextNewline);
AddButton(EngineKeyFunctions.TextSubmit);
AddButton(EngineKeyFunctions.MultilineTextSubmit);
AddButton(EngineKeyFunctions.TextSelectAll);
AddButton(EngineKeyFunctions.TextCopy);
AddButton(EngineKeyFunctions.TextCut);
AddButton(EngineKeyFunctions.TextPaste);
AddHeader("ui-options-header-text-chat");
AddButton(EngineKeyFunctions.TextHistoryPrev);
AddButton(EngineKeyFunctions.TextHistoryNext);
AddButton(EngineKeyFunctions.TextReleaseFocus);
AddButton(EngineKeyFunctions.TextScrollToBottom);
AddHeader("ui-options-header-text-other");
AddButton(EngineKeyFunctions.TextTabComplete);
AddButton(EngineKeyFunctions.TextCompleteNext);
AddButton(EngineKeyFunctions.TextCompletePrev);
foreach (var control in _keyControls.Values) foreach (var control in _keyControls.Values)
{ {
UpdateKeyControl(control); UpdateKeyControl(control);

View File

@@ -118,6 +118,11 @@ ui-options-header-shuttle = Shuttle
ui-options-header-map-editor = Map Editor ui-options-header-map-editor = Map Editor
ui-options-header-dev = Development ui-options-header-dev = Development
ui-options-header-general = General ui-options-header-general = General
ui-options-header-text-cursor = Text cursor
ui-options-header-text-cursor-select = Text selecting
ui-options-header-text-edit = Text editing
ui-options-header-text-chat = Chat
ui-options-header-text-other = Text input other
ui-options-hotkey-keymap = Use US QWERTY Keys ui-options-hotkey-keymap = Use US QWERTY Keys
ui-options-hotkey-toggle-walk = Toggle Walk ui-options-hotkey-toggle-walk = Toggle Walk
@@ -241,6 +246,42 @@ ui-options-function-shuttle-rotate-left = Rotate left
ui-options-function-shuttle-rotate-right = Rotate right ui-options-function-shuttle-rotate-right = Rotate right
ui-options-function-shuttle-brake = Brake ui-options-function-shuttle-brake = Brake
ui-options-function-text-cursor-left = Move cursor left
ui-options-function-text-cursor-right = Move cursor right
ui-options-function-text-cursor-up = Move cursor up
ui-options-function-text-cursor-down = Move cursor down
ui-options-function-text-cursor-word-left = Move cursor left by word
ui-options-function-text-cursor-word-right = Move cursor right by word
ui-options-function-text-cursor-begin = Move cursor to beginning
ui-options-function-text-cursor-end = Move cursor to end
ui-options-function-text-cursor-select = Select text
ui-options-function-text-cursor-select-left = Expand selection left
ui-options-function-text-cursor-select-right = Expand selection right
ui-options-function-text-cursor-select-up = Expand selection up
ui-options-function-text-cursor-select-down = Expand selection down
ui-options-function-text-cursor-select-word-left = Expand selection left by word
ui-options-function-text-cursor-select-word-right = Expand selection right by word
ui-options-function-text-cursor-select-begin = Expand selection to beginning
ui-options-function-text-cursor-select-end = Expand selection to end
ui-options-function-text-backspace = Backspace
ui-options-function-text-delete = Delete
ui-options-function-text-word-backspace = Backspace word
ui-options-function-text-word-delete = Delete word
ui-options-function-text-newline = Newline
ui-options-function-text-submit = Submit
ui-options-function-multiline-text-submit = Submit multiline
ui-options-function-text-select-all = Select all
ui-options-function-text-copy = Copy
ui-options-function-text-cut = Cut
ui-options-function-text-paste = Paste
ui-options-function-text-history-prev = Previous from history
ui-options-function-text-history-next = Next from history
ui-options-function-text-release-focus = Release focus
ui-options-function-text-scroll-to-bottom = Scroll to bottom
ui-options-function-text-tab-complete = Tab completion
ui-options-function-text-complete-next = Complete next
ui-options-function-text-complete-prev = Complete previous
## Network menu ## Network menu
ui-options-net-predict = Client-side prediction ui-options-net-predict = Client-side prediction