|
|
#16 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,934
Karma: 34252880
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
ps: I don't use it often enough to have warranted making a request for a context menu. BR Last edited by BetterRed; Yesterday at 04:51 PM. |
|
|
|
|
|
|
#17 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,258
Karma: 7640672
Join Date: Nov 2009
Device: many
|
Since no text input is needed in that dialog, I mapped pushbuttons to the keyboard as shown below (think Down, Up, First, Last).
Code:
bool EditRO::eventFilter(QObject *obj, QEvent *event)
{
if (obj == ui.ROList) {
if (event->type() == QEvent::KeyPress) {
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
int key = keyEvent->key();
if (key == Qt::Key_D) {
MoveDown();
return true;
} else if (key == Qt::Key_U) {
MoveUp();
return true;
} else if (key == Qt::Key_F) {
ToTop();
return true;
} else if (key == Qt::Key_L) {
ToBottom();
return true;
}
}
}
// pass the event on to the parent class
return QDialog::eventFilter(obj, event);
}
|
|
|
|
|
|
#18 | |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 462
Karma: 100100
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Quote:
The context menu referred to by Kevin is the Book Browser context menu. When you select 'Change Reading Order', the resulting dialog just has a couple of buttons and up/down arrows - no context menu. |
|
|
|
|
|
|
#19 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,258
Karma: 7640672
Join Date: Nov 2009
Device: many
|
And the Change Reading Order dialog uses a simple key to button mapping (as described above) to allow quick keyboard only use - so no need to Tab around to a button and back.
|
|
|
|
|
|
#20 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,934
Karma: 34252880
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
For my very occasional use, tabs and spaces are easier, I also use them to move around and select the controls in other Sigil tools, e.g. Find and replace, Reports. Because I use Metadata editor several times a week I use its context menu.
Curious: why is the Change Reading Order modal dialogue window a detached child of the Main window, on Windows 10 it creates a separate taskbar item. The very similar Metadata Edit modal dialogue window is an attached child of the Main window hence it's not shown on the taskbar. See attached screen shots. BR Last edited by BetterRed; Today at 04:43 PM. |
|
|
|
|
|
#21 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,258
Karma: 7640672
Join Date: Nov 2009
Device: many
|
Not adding an unneeded context menu for such a simple dialog, feel free to use Tab but using the specified keys is much faster.
It is modal as you need to specify the order before anything else can happed. It is not a QDockWidget. Will look into how it is parented. Last edited by KevinH; Today at 05:26 PM. |
|
|
|
|
|
#22 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,766
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If the NAV does not have a page map, is there any reason it cannot be used in place of an HTML ToC in the ePub?
|
|
|
|
|
|
#23 | ||
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,934
Karma: 34252880
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
[QUOTE=KevinH;4623971]Not adding an unneeded context menu for such a simple dialog, feel free to use Tab but using the specified keys is much faster.QUOTE]
Its for me to decide what's easier and faster for me! It was you who wrote the Change Reading Order dialogue had a context menu, maybe that's not what you meant, but imo it's what you wrote. Given it wasn't present in 2.8.1, I installed 2.8.6 (I'd been waiting for the dust to settle) when it wasn't there either, all I did was to point that out. At no stage have I requested context menu for the Change Reading Order dialogue, on the contrary I wrote: Quote:
Quote:
BR Last edited by BetterRed; Today at 06:40 PM. |
||
|
|
|
|
|
#24 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,258
Karma: 7640672
Join Date: Nov 2009
Device: many
|
I can reparent this to MainWindow. It never had a context menu only BookBrowser to launch it. Tooltips over buttons should show keys to use. If they don't I will fix that.
And my measure of "easier" is the total key presses to accomplish the goal of full keyboard access. It does not luckily depend on your subjective opinion. And since you do not need nor want a context menu we are good to go with no change along those lines. Last edited by KevinH; Today at 06:45 PM. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Preference settings always ignored | rmtew | Conversion | 2 | 11-11-2013 03:45 PM |
| preference scope | BetterRed | Calibre | 2 | 10-01-2013 05:25 AM |
| No Preference or Help Button on Calibre (v. 0.8.41) | Toffee | Devices | 2 | 03-05-2012 09:39 AM |
| Publishers Preference Poll | CJJ | General Discussions | 24 | 02-12-2012 02:29 PM |
| view preference | cybmole | Calibre | 2 | 01-25-2011 04:26 PM |