04-17-2024, 08:06 PM | #121 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Okay I had to rework things a bit in HeadingSelector.ui and HeadingSelector.cpp to allow Select Headings to work with tab to shift focus.
Luckily, in the rework I was able to find the reason for a random crash I have seen there over the years and track it down and get it fixed. This should now be fixed in master. I will next work on if the Shortcut Selector QLineEdit can use some non-tab based escape to move tab forward before I give up and make it Qt::ClickFocus only. Thanks for tracking down all of these nits as I am not a tab to move focus kind of person so I have rarely run into any of them and some have existed for a very long time. |
04-17-2024, 08:13 PM | #122 | |
null operator (he/him)
Posts: 20,936
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Other single line text boxes (e.g. "Set folder where temporary files should be created:") do allow one to Tab to the next control (in that case the "Auto" button). IMO using a single line text box for entering keyboard shortcut values was a mistake, most of other apps I use take a different approach - see attachments. I quite like the second one, like Sigil it has a sortable/searchable list. BR |
|
Advert | |
|
04-17-2024, 09:05 PM | #123 | |
null operator (he/him)
Posts: 20,936
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I dont use toolbars, but if I did I could assign plugins to buttons, thus: That shows I have assigned "Folder In" to "Plugin button 1", and that I can get a list of installed plugins to select from. But I do use kb shorts, this is what is presented: I don't have a clue as what plugins are installed or what shortcuts have been assigned to which plugins, sort by Name is skew-whiff, and to add insult to injury if I remove a shortcut the focus shifts to the Shortcut text box, which of course I can't Tab out of BR |
|
04-17-2024, 09:16 PM | #124 | |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Please remember Sigil is a cross platform application.
Qt handles shortcuts directly and needs to remap modifiers on the mac side so the apple key becomes a Ctrl key. They do this so programs can support both mac and linux and Windows when using standard Ctrl-C for copy, etc. It gets remapped to Apple-C internally for macs and so on. And macs do not need or use menu accelerator keys as they have a unified menu bar and system defined keys to access all menus using the keyboard. If you think accelerator keys are important for any specific dialog, please pick which letters on which menus. Also get some buy-in from other Windows users of Sigil before formally proposing them making the assignments as clear as possible, and as I get free time I will try to apply them. Testing them will be up to Windows users. Quote:
|
|
04-17-2024, 09:21 PM | #125 | |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Unless you are building your own from source on Windows on a daily basis on Windows, many of these already fixed issues will recur.
So please hold off identifying issues unless you are making current builds from master. Reporting the same already fixed bug just doubles the volume in this thread without really helping. Thanks, Quote:
|
|
Advert | |
|
04-17-2024, 09:56 PM | #126 | |
null operator (he/him)
Posts: 20,936
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
04-17-2024, 10:27 PM | #127 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
The plugin shortcuts set in the Keyboard shortcuts can only be set on plugin numbers, not plugin names. The names are all available via the Plugin menu for launching organized by kind of plugin.
You determine the plugin numbers in the Plugin Manager Shortcut tab! This is not a bug, it has been that way ever since I created the plugin interface and added plugin support. So first you choose up to 10 of your most favorite plugins and assign them to shortcut positions in Manage Plugins. Then show the plugin toolbars so you can see the 10 you selected. Then in the Shortcut Manager you can assign those 10 whatever shortcuts you want. I used to assign a sequence number as short cuts for those. For example Alt + F1, Alt+F2, etc. Now my set of Plugins remains pretty much unchanged by position so I changed to more mnemonic shortcuts based on that plugin's name. It is up to you. Just glancing at the plugin toolbar with each plugin's custom icon helps me remember which shortcut I chose. If you show the plugin toolbars it will help. The repeat bit was about the QLineEdit for shortcuts capturing tab focus shifts. BeckyEbook already reported that and the Plugin Preferences tab shifts have all been fixed in master. Last edited by KevinH; 04-17-2024 at 10:31 PM. |
04-17-2024, 10:48 PM | #128 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
And yes the Shortcut Manager uses an alphabetic sort of descriptor names. Not a numeric. The shortcut master table is stored in settings ini files. They have a fixed set of descriptor keys. There are over 150 right now. Given how many plugins people use and change, using plugin names that change would mean the static set of known descriptor values would no longer be static meaning that the shortcuts ini file would need to change and adapt to whatever plugins you have now and to any plugins changes you make. My allotting 10 shortcuts, and allowing you to determine which 10 and in what order, keeps it all static and simpler.
There are just not enough possible short cut keys to handle all of the inputs, menus, buttons, tools, etc in Sigil. So allowing the user to manage and assign their own subset based on what they think are important to their productivity is what we are trying to achieve. Turning off alot of toolbars could limit you. That said, you can grow the icon sizes in Preferences to make them easier to see and select. You can use menus accessed by system shortcuts and accelerator keys to navigate them, etc. After that you will have to explore what your system Accessibility settings for full keyboard navigation can do. Qt seems to support many of them on macOS. Last edited by KevinH; 04-17-2024 at 10:51 PM. |
04-17-2024, 11:17 PM | #129 | |
null operator (he/him)
Posts: 20,936
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Windows Accelerator keys are not needed to access menus implemented via the Win32 C++ Menu library - which is most of them, and what I believe Qt uses under the hood. I can traverse such menus, including Sigil's, with one finger. Pressing the Alt key gets me to the first menu item (e.g, File) (i.e. its a universal "Focus on Menu" key) from there I can use the arrow keys to traverse the menu tree. The primary use of Accelerator keys (Alt+x) is to navigate directly to user input objects (buttons, checkboxes, text boxes, etc) within a form like window (dialogue boxes and the like). I don't make as much use of Accelerator keys as I once did: a) some applications don't have them at all, b) others have duplicates on the same window (e.g. three Alt+Gs), c) and others are incomplete - e.g. a checkbox is added with no accelerator. But there are times when their presence comes in handy. BR |
|
04-17-2024, 11:27 PM | #130 |
Bibliophagist
Posts: 39,500
Karma: 154108302
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Perhaps that with a program that runs on multiple platforms, decisions have to made to keep the interface somewhat consistent? Years back, I used a program that worked on MacOS, Windows and Linux but switching between OS was a total pain since the interface changed making all my muscle memory even worse than useless. Heck, even between Ubuntu and SUSE, the interface changed.
|
04-18-2024, 07:52 AM | #131 | |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Quote:
b) In general we are not interested in supporting web development as epubs use xhtml not html. That said you should explore Sigil Plugins. There already is a FolderOut plugin that can just the files to any folder. So creating your own plugin to export or save files anyplace should be easily doable. There already is a close tag feature than can be invoked by shortcut. Plus using Sigil Clips to enter template tag pairs already does most of that to speed entry. Plus Sigil's Mend will close tags left open by following the html parsing rules. You can also use our PageEdit app for proofing and minor typo correction. Glad to hear you like Sigil. |
|
04-18-2024, 09:34 AM | #132 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Okay, I think I have a way for ShortCut Manager target edit to allow the Tab and Backtab keys to move focus out of that widget.
I have pushed this fix to master. @BeckyEbook - I think that takes care of your bug list related to tab to shift focus so far. Please let me know if you run into any new places that break tab to shift focus. Thanks |
04-18-2024, 05:10 PM | #133 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
For those interested:
I just pushed a whole bunch of tab focus shift fixes for all platforms but especially macOS. So if you have time to pull and build from master and run some tests - especially on tab to shift focus issues and on other tools and dialogs besides the MainWindow. I am hoping we are getting close now. And just because I could, I added support for the user to override the focus highlight color specified like you would in css with #RRGGBB format. So SIGIL_FOCUS_HIGHLIGHT_COLOR="#4AAAFF" will use a mid deep blue for focus highlighting. Of course for this to matter, you must have enabled Focus Highlights in Sigil Preferences first (Appearances -> Main UI) and restarted Sigil. Hav Fun! |
04-18-2024, 10:05 PM | #134 | |
Evangelist
Posts: 416
Karma: 2289864
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Quote:
|
|
04-19-2024, 02:43 AM | #135 |
Guru
Posts: 767
Karma: 2297170
Join Date: Jan 2017
Location: Poland
Device: Various
|
isValidColorName() works for >Qt 6.4.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Icon Redesign for future 1.0 Release of Sigil | shorshe | Sigil | 38 | 06-06-2016 11:29 PM |
Kindle Software Preview Release and calibre 'Fetch News' items | tomsem | Devices | 25 | 07-20-2011 08:02 AM |
Will amazon release another cheaper version of DX in the near future | CalvinL | Amazon Kindle | 6 | 07-31-2010 05:01 PM |
Suggestion For Future Release Of Calibre | clambert | Calibre | 5 | 07-10-2010 01:45 PM |
dotReader alpha release next month with future iLiad support possible | Alexander Turcic | News | 7 | 09-28-2006 12:24 PM |