Quote:
Originally Posted by BetterRed
I missed your edit to your previous post. All I had anticipated coming out of our exchange was an error message: The 'show-book-details' option in not allowed in the 'enter_key_behavior' setting.
I gave it spin and it works - i.e. Enter will pop the book details as per the setting.
But I discovered that if 'enter_key_behavior' has an invalid value e.g. 'Xhow_locked_book_details' I get the same behaviour as before, a format file is opened, but its not first in list as I thought.
If I have DOCX, EPUB, PDF & RTF, Enter will open the DOCX in Word.
If I remove the DOCX, Enter will open the RTF in Wordpad.
If I remove the RTF, Enter will open the EPUB in the calibre-viewer.
And if I remove the EPUB, Enter will open the PDF in PDF-EXchange.
If 'doubleclick_on_library_view" has an invalid value, double click does nothing. I suggest an invalid setting for Enter key be given the same treatment.
BR
|
There is no mechanism to validate tweaks when they are defined. Instead they are checked at the point of use, usually for values of interest at that point. In most cases if the tweak doesn't have one of the "interesting" values then the default is assumed. I'm not interested in changing that behavior.
As for which format is opened, calibre uses the order defined in Preferences / Behavior / Preferred input format order. If no book format is in that list then it picks one more-or-less randomly.