Skip to content
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

Add Support for Key Modifiers to the Hotkeys #582

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

CryZe
Copy link
Collaborator

@CryZe CryZe commented Oct 11, 2022

This adds support for key modifiers to the livesplit-hotkey crate. Instead of specifying a KeyCode, you now specify a Hotkey which consists of a KeyCode and a set of Modifiers. All the implementations support modifiers. However while wasm-web and macOS natively provide the state of the modifiers to us, the other platforms manually track their state.

This adds support for key modifiers to the `livesplit-hotkey` crate.
Instead of specifying a `KeyCode`, you now specify a `Hotkey` which
consists of a `KeyCode` and a set of `Modifiers`. All the
implementations support modifiers. However while `wasm-web` and `macOS`
natively provide the state of the modifiers to us, the other platforms
manually track their state.
@CryZe CryZe added enhancement An improvement for livesplit-core. feature A new user visible feature for livesplit-core. hotkey This is about the hotkey implementation. labels Oct 11, 2022
@CryZe CryZe linked an issue Oct 11, 2022 that may be closed by this pull request
@CryZe CryZe merged commit c546c6d into LiveSplit:master Oct 11, 2022
@CryZe CryZe deleted the hotkey-modifiers branch October 11, 2022 21:54
CryZe added a commit that referenced this pull request Oct 11, 2022
This adds support for key modifiers to the `livesplit-hotkey` crate.
Instead of specifying a `KeyCode`, you now specify a `Hotkey` which
consists of a `KeyCode` and a set of `Modifiers`. All the
implementations support modifiers. However while `wasm-web` and `macOS`
natively provide the state of the modifiers to us, the other platforms
manually track their state.
CryZe added a commit that referenced this pull request Oct 11, 2022
This adds support for key modifiers to the `livesplit-hotkey` crate.
Instead of specifying a `KeyCode`, you now specify a `Hotkey` which
consists of a `KeyCode` and a set of `Modifiers`. All the
implementations support modifiers. However while `wasm-web` and `macOS`
natively provide the state of the modifiers to us, the other platforms
manually track their state.
@CryZe CryZe added this to the v0.13 milestone Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement for livesplit-core. feature A new user visible feature for livesplit-core. hotkey This is about the hotkey implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Support for Key Combinations
1 participant