-
-
Notifications
You must be signed in to change notification settings - Fork 412
Introduce keyboard scroll flag in Virtual Console #1586
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
base: master
Are you sure you want to change the base?
Conversation
7819768
to
e0912e5
Compare
Hi @qfulmina , did you hava a chance to try this change? |
We don't need a flag. I think it's better to use the scroll lock feature built into nearly every keyboard. |
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.
e0912e5
to
e0183cc
Compare
At show time, even when "Use arrow and PgUp/PgDown keys to scroll" setting is unchecked, allow arrow and page keys to scroll around in virtual console. Scroll lock key toggles between scrolling and normal behaviour.
So, at last, after more than 40 years, we finally found a use for the scroll lock key! :-D To be honest, I don't really like basing the scrolling behaviour only on the scroll lock key. Anyway, I added the use of the scroll lock key on top of the previous development, but if you prefer the scroll lock to be the only toggle I can easily remove the settings-based implementation. Current behaviour becomes:
Please, let me know what do you think about this new version. |
If I had to do it, I would have added a toggle button in the Virtual Console toolbar with the existing locker icon (the one used in show manager) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hell yeah bring back the scroll lock!
@mcallegari, I tried to follow your suggestion, but it does not work here, since the change is relevant in operate mode, when console toolbar is not available. A lot of time passed since the beginnig of this change, so I think a little recap is needed. @lightyou opened issue #1443 because he could not use PgUp/PgDown and arrows as keyboard shortcuts.
Changes in current branch:
|
@Pac72 thanks for your work and your recap. Over the years I've come to the conclusion that each and every user would like to have a different version of QLC+ tailored for their workflow. |
Hello. As the requester for #1443, I can give my opinion. Regarding my personal use case, it is to use remote control used for PowerPoint like tools, that send key strokes pgup and pgdown. I have no idea if this use case can become common or not... |
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:
Closes #1443