Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2024, 05:24 AM   #1
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
right mouse click VS Shift+F10, MenuKey

The context menu shown for right click on a field in Book Details is not the same as the context menu shown when Shift/F10 or the Menu key is used on the same Book Details field, viz:

Click image for larger version

Name:	right click.jpg
Views:	49
Size:	105.9 KB
ID:	205723 Click image for larger version

Name:	shift+f10.jpg
Views:	48
Size:	87.4 KB
ID:	205724

Qt permitting, could the Shift/F10 context menu be made the same as mouse right click context menu.

For me, right click with a mouse is hard enough, on a laptop's trackpad its diabolical… the only gestures I do are two fingered ones

BR

And no, I don't know why I have the book editor configured for DOCX files.

Last edited by BetterRed; 01-10-2024 at 05:28 AM.
BetterRed is offline   Reply With Quote
Old 01-10-2024, 06:32 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Kovid will know, but I suspect it is hard if not impossible to do. The mouse knows what field it is over so can adapt the menu. The keyboard doesn't (seem to) use the mouse position.
chaley is offline   Reply With Quote
Advert
Old 01-10-2024, 06:57 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yeah context menu event is position dependent (aka the menu depends on what you click on). With the keyboard that position is zero IIRC.
kovidgoyal is online now   Reply With Quote
Old 01-10-2024, 09:25 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
well charles points out that one can avoid the click and allow pressing the context key instead, provided you are willing to move the mouse to the desired location first.
kovidgoyal is online now   Reply With Quote
Old 01-10-2024, 05:25 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
Kovid will know, but I suspect it is hard if not impossible to do. The mouse knows what field it is over so can adapt the menu. The keyboard doesn't (seem to) use the mouse position.
In my second screen shot, the dots (ants) around DOCX indicate that that's where the keyboard focus lies.

I would have thought the keyboard handler should process Shift/F10 or Menukey down/up interrupts in the same way as the mouse handler handles the right button down/up interrupts… without reference to the mouse location.

Quote:
Originally Posted by kovidgoyal View Post
well charles points out that one can avoid the click and allow pressing the context key instead, provided you are willing to move the mouse to the desired location first.
Nope - if I hover the mouse over the DOCX and press Shift/F10 I get the same 3 item context menu - Copy, Search, Re-index menu.

BR
BetterRed is offline   Reply With Quote
Advert
Old 01-10-2024, 05:38 PM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
Nope - if I hover the mouse over the DOCX and press Shift/F10 I get the same 3 item context menu - Copy, Search, Re-index menu.

BR
The question:
We can change calibre so that in book details the keyboard context menu request uses the item under the mouse pointer instead of the semi-random position Qt uses. Keyboard focus does not provide this information.

Are you willing/able to move the mouse pointer before you press the context menu key? Do note that you must click somewhere (anywhere) in the book details panel before this will work.
chaley is offline   Reply With Quote
Old 01-10-2024, 05:49 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Late breaking discovery:

If I backtab into the field e.g. the DOCX, and press Shift+F10 or Menu key I get the full menu. I can live with that workaround, but it suggests it should be fixable for forward tab into a field.

@chaley - using a mouse on a lap mounted Surface Go whilst sitting on the Manly ferry and then the 199 bus to Newport is best avoided… and if not, it would have to be on a leash

BR

Last edited by BetterRed; 01-10-2024 at 05:57 PM.
BetterRed is offline   Reply With Quote
Old 01-10-2024, 06:00 PM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
Late breaking discovery:

If I backtab into the field e.g. the DOCX, and press Shift+F10 or Menu key I get the full menu. I can live with that workaround, but it suggests it should be fixable for forward tab into a field.

BR
That doesn't work for me. I see no difference in behavior no matter whether I forward tab or backtab to a field. Glad it works for you. I hope it continues to do so.
chaley is offline   Reply With Quote
Old 01-10-2024, 06:23 PM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
That doesn't work for me. I see no difference in behavior no matter whether I forward tab or backtab to a field. Glad it works for you. I hope it continues to do so.


Works for me on all fields in both detached Book details windows.
  • Open one of the detached book details windows
  • Tap Tab until I get to the field I want - DOCX has ants
  • Tap Tab again - EPUB has ants
  • Tap Shift/Tab - DOCX has ants
  • Press Shift+F10 or Menukey - et voila the full context menu
Works in calibre 4.3, on my Win10 Dell desktop, and on my Win11 Surface Go.

BR
BetterRed is offline   Reply With Quote
Old 01-11-2024, 06:11 AM   #10
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post


Works for me on all fields in both detached Book details windows.
  • Open one of the detached book details windows
  • Tap Tab until I get to the field I want - DOCX has ants
  • Tap Tab again - EPUB has ants
  • Tap Shift/Tab - DOCX has ants
  • Press Shift+F10 or Menukey - et voila the full context menu
Works in calibre 4.3, on my Win10 Dell desktop, and on my Win11 Surface Go.

BR
As far as I can see the behavior you see is accidental and doesn't always work. Reason: the Qt focus rectangle you see isn't the same size as the underlying hyperlink's click rectangle, but is instead a pixel or 2 larger. However, sometimes the focus point of the rectangle provided by Qt (one corner) is correct in that it is within the hyperlink's click rectangle. I haven't determined how Qt chooses which corner to provide.

If it is working for you when you need it, good.
chaley is offline   Reply With Quote
Old 01-11-2024, 04:37 PM   #11
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Leaving aside the Tab/Backtab issue, it always works for me, the entire content of the field is always selectable - as visualised by the dotted rectangle surrounding the field.

If I Backtab into a long text field that contains <a ref…> links I can Shift+F10 on the links and open the links. If I Backtab into a Link or Note icon I can do the same, see attached screen shots.

As I wrote in my opening post:

Quote:
"Qt permitting, could the Shift/F10 context menu be made the same as mouse right click context menu."
I'm at a loss to understand why Qt would do something different if a field is selected via a Backtab as opposed to what it does when the same field was selected a moment earlier via a Tab.

I've given Qt a nickname -- 'Thatcher'!

Curious - did you try the sequence of steps I provided in my last post.

BR
Attached Thumbnails
Click image for larger version

Name:	open a view book link.jpg
Views:	24
Size:	303.1 KB
ID:	205763   Click image for larger version

Name:	open a publisher link.jpg
Views:	21
Size:	149.4 KB
ID:	205764   Click image for larger version

Name:	open a publisher note.jpg
Views:	21
Size:	161.6 KB
ID:	205765  

Last edited by BetterRed; 01-11-2024 at 04:49 PM.
BetterRed is offline   Reply With Quote
Old 01-11-2024, 04:46 PM   #12
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
Curious - did you try the sequence of steps I provided in my last post.

BR
Yes, and several other variants on several fields including formats. The response appeared to be related to whether there is more than one item in the category (2 formats or a link, backtab usually worked) and whether the time of day in seconds is an even number. Sometimes it works with a forward tab, sometimes with a back tab, and sometimes not at all. Publisher seemed to always work.

I worked out what I think Qt is doing and submitted a work-around that Kovid accepted and is now in source. Qt gives a different point in the focus rectangle based on which direction was used to enter the field. It now always works for me. We will see whether or not it works for you or I killed whatever daemon you have in your computer that was working on your behalf.
chaley is offline   Reply With Quote
Old 01-11-2024, 05:31 PM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Shift/F10 and Menukey behaves just same in Windows 10 Safe Mode with no plugins, arrive on a Tab no good, arrive on a Backtab all good.

Windows advanced visualisation settings may play a role - mine are:

Click image for larger version

Name:	Screenshot 2024-01-12 092706.jpg
Views:	27
Size:	91.9 KB
ID:	205767

BR
BetterRed is offline   Reply With Quote
Old 01-11-2024, 05:36 PM   #14
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
Shift/F10 and Menukey behaves just same in Windows 10 Safe Mode with no plugins, arrive on a Tab no good, arrive on a Backtab all good.

Windows advanced visualisation settings may play a role - mine are:

Attachment 205767

BR
I confess to confusion. Are you saying I should take out the changes I made to compensate for Qt behavior verified using changes to calibre code because all is good?
chaley is offline   Reply With Quote
Old 01-11-2024, 05:48 PM   #15
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,590
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
My Test library has 89 columns, 14 standard and 75 custom

I just Tabbed and Backtabbed into each one of them, and into various embedded <a ref> links (html, calibre, onenote, mailto, file), Category links and Notes and saw the same phenomena on all of them - select on a Tab: no good - select on Backtab: all good.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shift + Left-Mouse Click to select multiple epubs Fails Frizzell Library Management 24 03-17-2020 12:42 PM
Mouse-click to shift from book detail screen to main screen, without edit mode. Rob557 Library Management 2 07-27-2012 06:45 AM
Mouse Click behaviour melmac Calibre 2 01-11-2012 05:39 AM
mouse click tracking or analytics? PChuprina ePub 3 10-29-2010 11:44 PM
Free Fantasy, Only A Mouse-Click Away Carolyn Kephart Writers' Corner 14 06-01-2009 03:31 PM


All times are GMT -4. The time now is 02:12 AM.


MobileRead.com is a privately owned, operated and funded community.