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

Disable Hotkey On Settings Menu #71

Open
Stateford opened this issue Oct 4, 2018 · 8 comments
Open

Disable Hotkey On Settings Menu #71

Stateford opened this issue Oct 4, 2018 · 8 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@Stateford
Copy link
Owner

Currently the hotkey button is enabled on the settings menu and should be temporarily disabled until the tab is switched. The key should be unregistered, and re-registered after the switch.
The current hotkey should appear in the Hotkey control box

@Stateford Stateford added bug Something isn't working enhancement New feature or request good first issue Good for newcomers Hacktoberfest Hacktoberfest labels Oct 4, 2018
@ghost
Copy link

ghost commented Oct 5, 2018

Hello @idietmoran! Is this issue up for grabs?

@Stateford
Copy link
Owner Author

It is. I'm thinking the hotkey should be unregistered when a user navigates to the settings page, and reregistered when the user navigates away.

Make sure you do it on the develop branch.

Line 370-374 is where the switching is detected.

Thanks!

@ghost
Copy link

ghost commented Oct 5, 2018

@idietmoran I was wondering if I could potentially get some more clarification on the hotkey. I'm a little confused on what the hotkey is. Are you referring to the Settings options such as "Minimize on start", "Bring window to foreground", etc.?

@Stateford
Copy link
Owner Author

Currently this feature is only enabled on the develop branch.

There should be a small box at the bottom of the window that you can click into and set a hotkey.
Currently any registered hotkey will still activate while on this window.

Check hotkey.c in dispLib for more information.

The hotkey information is stored in a struct HOTKEY which is also in a struct SETTINGS.

Check common.h for struct implementations.

@ghost
Copy link

ghost commented Oct 5, 2018

Awesome. Thanks! That clarifies a lot. I didn't see the develop branch and was on the master branch when I opened up the project in VS.

@Stateford
Copy link
Owner Author

Yep, all work should be done on develop, or a branch checked out from develop.

Any tests you may want to add would be appreciated as well (although a lot of this stuff is hard to test against)

@Stateford Stateford added the In Progress Currently working on this issue label Oct 7, 2018
@Stateford Stateford added this to the Hotkey milestone Oct 7, 2018
@Stateford
Copy link
Owner Author

Unfortunately this is going to have to wait for #42 which was just reopened. I'm not sure if you're still working on this, but someone found a bug with the method we used.

@Stateford Stateford removed the In Progress Currently working on this issue label Oct 9, 2018
@ghost
Copy link

ghost commented Oct 9, 2018

No problem @idietmoran . I was still in the process of getting acquainted with the codebase as it's my first time working with a WinAPI application so not much was changed on my end yet. Thanks for the heads up!

@Stateford Stateford added wontfix This will not be worked on and removed Hacktoberfest Hacktoberfest bug Something isn't working labels Nov 7, 2018
@Stateford Stateford removed the wontfix This will not be worked on label Aug 15, 2019
@Stateford Stateford reopened this Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant