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

Introduce keyboard scroll flag in Virtual Console #1586

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Pac72
Copy link

@Pac72 Pac72 commented Jun 18, 2024

This is the second try to fix #1443, after a first attempt with pull request #1584 that covered only VCButtons.
The approach on this change is completely different: introduce a flag to choose whether or not to use arrow and PgUp/PgDown keys to scroll Virtual Console.
When the flag is disabled, all the keys are available as key combinations on the controls.

Side changes:

  • in assignhotkey.ui the former QLineEdit has been replaced by a QLabel to allow capture of (almost) all the keys (the QLineEdit consumes at least backspace, delete, home, end, left and right cursor keys)
  • the CTRL+key combinations are completely blocked

Closes #1443

Pac72 added 3 commits June 18, 2024 00:31
The QLineEdit in assignhotkey.ui intercepts several key events,
(e.g. backspace, delete, home, end, left and right arrows...).
Replace the QLineEdit with a simple QLabel to improve key capture.
Moreover, inhibit completely the CTRL+<key> combinations.
Introduce in Virtual Console Settings a flag to enable/disable
standard keyboard management on scroll area.
The flag, when enabled (default), guarantees current behaviour:
arrow keys and PgUp/PgDown keys are used to scroll the console
and cannot be used as key combinations for controls.
When disabled, the scroll area does not consume key events
anymore, leaving all the keys available as key combinations
on the controls.
@Pac72 Pac72 force-pushed the issue-1443-vc-settings branch from 7819768 to e0912e5 Compare June 18, 2024 22:59
@coveralls
Copy link

Coverage Status

coverage: 32.056% (+0.02%) from 32.034%
when pulling e0912e5 on Pac72:issue-1443-vc-settings
into c1f5846 on mcallegari:master.

@Pac72
Copy link
Author

Pac72 commented Aug 4, 2024

Hi @qfulmina , did you hava a chance to try this change?

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.

PgUp, PgDown and arrows don't work as keyboard shortcuts
2 participants