View Single Post
Old 05-27-2023, 01:40 PM   #1089
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Sources for the JS Shortcut Listing

There are 2 entirely different sources for the JS Shortcut Listing:

[1] Calibre's maingui.keyboard.shortcuts (a.k.a. Default)

[2] Calibre's "calibre\shortcuts\main.json" (a.k.a. Custom)

The JS Tool treats all shortcuts in maingui.keyboard.shortcuts identically based on the values available in that dictionary, and main.json items identically based on the values available in that dictionary.

Hence, the behavior you observed and noted.

My main.json looks like below.

Code:
{
  "map": {
    "Interface Action: Add Books (Add Books) - qaction": [],
    "Interface Action: Drop Search Results (Drop Search Results) : menu action : Drop Search Results": [
      "A"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   'FormatSpy": [],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   'Notes Viewer": [
      "Ctrl+\\"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   'RowSpy": [
      "Alt+\\"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Apply JS Quality Fixes [Selected Books]": [
      "Ctrl+J"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Apply View Manager Views based on Virtual Library": [
      "Ctrl+V"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   BIB Catalog to RIS Converter/Exploder to Auto-Add": [
      "`"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Copy Selected 'User Category' to a Target Library": [
      "Ctrl+Num++"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Copy-to-Library Shortcut": [
      "Ctrl+Num+/"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Display 'Polish Books' Job Font-Embedding Failures and Failed Books": [
      "Alt+Num+."
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   FTP Books to Host [Selected Books] [Specified Formats]": [
      "Ctrl+Num+0"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Invert Selection": [
      "Ctrl+Num+-"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Keyboard Shortcut to Autofill Custom Column #1 [Selected Books]": [
      "Ctrl+Num+1"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Keyboard Shortcut to Autofill Custom Column #2 [Selected Books]": [
      "Ctrl+Num+2"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Keyboard Shortcut to Autofill Custom Column #3 [Selected Books]": [
      "Ctrl+Num+3"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Keyboard Shortcut to Autofill Custom Column #4 [Selected Books]": [
      "Ctrl+Num+4"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   List Active Keyboard Shortcuts": [
      "Ctrl+Num+*"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   PubMed NBIB to RIS Converter/Exploder to Auto-Add": [
      "Ctrl+`"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Scrub Tag/Tag-Like Columns Using Rules Tables [All Tags]": [
      "Ctrl+S"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Tickle Auto-Adder to Wake Up": [
      "Ctrl+W"
    ],
    "Interface Action: Job Spy (Job Spy) : menu action : JS+:GUI Tool:   Update Custom Column Based on Another Custom Column [Selected Books]": [
      "Ctrl+B"
    ],
    "Interface Action: Show Book Details (Show Book Details) : menu action : close_all_details": [
      "Alt+Num+1"
    ],
    "Interface Action: Show Book Details (Show Book Details) : menu action : show_locked_details": [
      "Alt+Num+2"
    ]
  },
  "options_map": {}
}
All of the main.json shortcuts are treated identically based on their values in main.json. I personally don't see anything in the above that lends itself to doing something different than what it currently does.


DaltonST
DaltonST is offline   Reply With Quote