![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
KB Shortcuts for Change Case?
I was using the right-click menu to change the case of selected text (very useful BTW)
But I couldn't find a way to assign each of the 4 or 5 Change Case options to a KB shortcut There didn't seem to be (at least as far as I could find) a way to do that in Editor. Did I miss something? Or could they be added to the list of customizable KB shortcuts? Thanks |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,200
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Thanks
I wish I understood Python (?) Does that mean I can assign (say) Shift+Alt+L to LowerCase, and Shift+Alt+U to UpperCase? |
![]() |
![]() |
![]() |
#4 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
a. if there are 5 shortcuts that can be assigned (one to LC, one to UC, etc.) or b. if there was only one keystroke combo that could be assigned to bring up the current [Change Case] menu with it's 5 choices. I just know 0.0000000% about Python (other than of course the Kovid is a whiz at it) |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,200
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It means you can assign whatever (as long as it does not conflict with something else) you like to whichever individual action you like.
EDIT: There is a small caveat, IIRC, the shortcut system does not support the shift key, you would have to use ctrl+Alt+L instead. Last edited by kovidgoyal; 08-14-2014 at 12:25 PM. |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Thanks for translating it into 'User Speak' for me
|
![]() |
![]() |
![]() |
#8 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,634
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#9 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,200
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
This means one has to detect the presence of shift by examining the text produced by the keypress and for certain combination of modifier keys such as, for example, shift+ctrl+u Qt produces ascii control codes for the keypress text, which confuses the logic I use to detect shift sensitive characters. I have actually implemented a fix for that, though there's no way to make it fully robust, so it will work with some keyboard layouts, with some keys, on some platforms, some of the time...best to just avoid using shift. |
|
![]() |
![]() |
![]() |
#10 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,634
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
As I said - 'shift alone is fine - for me at least' - now if it stops working I won't be able to ask - why wasn't I told? :lol:
I was sort of surprised when I discovered shift/something worked at all. Curiosity : why can't we use shift/alt ? BR |
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,200
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Shift alone will certainly work as a shortcut, the problem with it is that it prevents you from using the shift key while typing (I am talking about the editor here) since the shiortcut will be triggerred instead of the upper case letter being typed.
|
![]() |
![]() |
![]() |
#12 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,634
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
In my usage case the Code Editor window, and the S&R panel, seem to take precedence.
Due to procedural serendipity, I only use the two I assigned - shift/p (smarten punctuation) and shift/c (Remove unused CSS rules) - when there's no file in the CV window - i.e. when the EPUB is first opened. If there's a file open in CV the shift/p and shift/c produce a 'P' and 'C' wherever the insertion point is in the CV window, or similarly in the S&R text boxes. BR |
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,200
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Well ok, it goes the other way, the typing takes precedence over the shortcut, the point is that they conflict. I suppose you can get away with it if you are particularly careful about which shift based shortcuts you assign where.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change case in a regular expression | myki | Library Management | 19 | 06-26-2014 04:46 AM |
Change case tool | ZoeRochelle | Editor | 12 | 04-04-2014 06:55 PM |
Change uppercase to mixed case | ElMiko | Sigil | 15 | 06-13-2012 07:13 AM |
Keyboard shortcuts change for 0.8.14 - impact on plugins? | kiwidude | Development | 37 | 09-24-2011 12:25 PM |
Folder case change | skells | Calibre | 3 | 05-17-2011 02:24 PM |