-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Keyboard shortcuts not persisting #53
Comments
Haven't gotten around to making shortcuts persistent... I'll make this a priority. |
Out of curiosity @hafner: What values are you customizing your keyboard inputs to and why? |
I have a wireless usb pointer that acts as a keyboard wedge(normally used for PowerPoint) and it doesn't allow you to change the keys. So I have start/stop mapped to enter instead of space. Switch mode mapped to F1 instead of F9 as my laptop has shrunken F keys and F9 is hard to find in a hurry.
…________________________________
From: Javier O. Cordero Pérez ***@***.***>
Sent: Wednesday, February 2, 2022 7:43:34 PM
To: Cuperino/QPrompt ***@***.***>
Cc: Michael ***@***.***>; Mention ***@***.***>
Subject: Re: [Cuperino/QPrompt] Keyboard shortcuts not persisting (Issue #53)
Out of curiosity @hafner<https://github.com/hafner>: What values are you customizing your keyboard inputs to and why?
—
Reply to this email directly, view it on GitHub<#53 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AACBBZRT7DCC3DYT2HJ26D3UZHFTNANCNFSM5NMZAM3A>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I see... Thanks for the feedback! |
Hi @Cuperino I would also greatly appreciate this enhancement. I am using a stream deck as a controller so am mapping the shortcuts to F13-F24 range so that it doesn't clash with anything else I'm using in Windows. If you know where in the source code they are actually defined/initialised, I might be able to find some time to work out some way of writing them out to / reading them in from a text .conf file that might work across platforms. I'm thinking something in a ~/.qprompt/ directory??? |
Hello @DrJPK, My apologies I haven't been able to work on this yet. It's been a busy month and the hardware I used to develop QPrompt broke, but I've worked around it. (You can find more details about this in the project's Telegram chat.) Adding persistence should be quite easy. The challenging part is having the program show the correct values on the key mapping UI when a new session starts; some tweaks or rewriting of the UI might be required. Key mapping codeKey mapping is split across 3 files:
How data is saved to diskConfigurations are saved to disk using the Qt.labs.settings module. This module is an API to access the QSettings from QML without the need to add additional C++ backend. Since The Qt Company does not guarantee the Qt.labs module will remain compatible in future versions of the software, if support for it is dropped the QSettings Class should be used instead, ideally through the creation of a shim layer. The advantage in using either Settings or QSettings is this layer provides a cross-platform abstraction to save simple configurations to disk. You can see where data is stored for each platform over at https://doc.qt.io/qt-5/qsettings.html#platform-specific-notes Prior knowledgeThis is not an exhaustive list. Understanding how the following things work will ease the development process: Good practicePlease note that a declarative programming approach should always preferred over imperative programming when developing QPrompt. You may watch KDAB's video tutorial on the topic for reference. Things that may need to occur for key mappings to be preserved
|
@DrJPK, just checking, have you been able to get acquainted with the code? |
…#53 and #75. Made next and previous anchor shortcut customization independent from move backwards and move forwards shortcuts, solving issue #65. Re-implemented Prompter's keyboard input management to enable using modifier keys as part of shortcuts, multiplying number of possible input combinations.
Quick update, I've finished implementing persistent shortcuts. The fix will be available in the next release. |
…#53 and #75. Made next and previous anchor shortcut customization independent from move backwards and move forwards shortcuts, solving issue #65. Re-implemented Prompter's keyboard input management to enable using modifier keys as part of shortcuts, multiplying number of possible input combinations.
Bug Description
If you set a custom keyboard shortcut the next time you open the application it is reverted back to default
Device information
The text was updated successfully, but these errors were encountered: