Skip to content

Feature/197 speech hotkeys rebased#2738

Merged
Tkael merged 16 commits into
developfrom
feature/197-speech-hotkeys-rebased
May 29, 2025
Merged

Feature/197 speech hotkeys rebased#2738
Tkael merged 16 commits into
developfrom
feature/197-speech-hotkeys-rebased

Conversation

@richardbuckle
Copy link
Copy Markdown
Member

Now rebased and internationalized.

richardbuckle and others added 16 commits May 27, 2025 13:23
# Conflicts:
#	EddiCore/EDDI.cs
(does not yet save or load any configuration info)
Add a `Clear` button and classes to help manage hotkey data.
Improve tests for valid key gestures and feedback for invalid gestures.
… and perform the registration only after the user accepts the hotkeys.
WPF controls must be created in a STA (single-threaded apartment) thread.
We use `STATestClass` instead of `TestClass` to ensure this.
See https://www.meziantou.net/mstest-v2-customize-test-execution.htm - however since that article was written MS has incorporated the solution into the MSTest framework.
We need to take copies of the name and gesture before unregistering and re-registering.
Exposing a mutable collection as a property never ends well.

Instead, keep the collection private and write methods for Add, Remove and Enumerate.

Fixes cases where hotkey changes were not getting written to disk.
@richardbuckle richardbuckle requested a review from Tkael May 27, 2025 15:03
@Tkael Tkael merged commit d41750e into develop May 29, 2025
3 checks passed
@richardbuckle richardbuckle deleted the feature/197-speech-hotkeys-rebased branch May 29, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants