Keyboard shortcut to capitalize last word
Keyboard shortcut to capitalize last word
I'd like to capitalize the last word I just typed, not because it's at the beginning of a sentence, just because I forgot to hold the shift key pressed while typing the first letter and after I see the effect on screen I decided I'd like to capitalize the word anyway and I don't want to have to go to back, select and retype.
is there any way to do that other than writing my own macro and assign it to whatever key I like?
is there any way to do that other than writing my own macro and assign it to whatever key I like?
LibreOffice 4.2.3.3 - ubuntu 14.04
Re: keyboard shortcut to capitalize last word
Just select the word by double clicking in it and /Format /Change Case.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
Re: keyboard shortcut to capitalize last word
well, I understand that this is possible, but I'm typing and while I type the mouse is disabled... I really prefer a keyboard quick action, like two or three key-presses.
LibreOffice 4.2.3.3 - ubuntu 14.04
Re: keyboard shortcut to capitalize last word
You could, in theory, record a macro to do it.
In my experience, it's often impossible to record a macro that works properly for different contexts.
In my experience, it's often impossible to record a macro that works properly for different contexts.
AOO4/LO5 • Linux • Fedora 23
Re: keyboard shortcut to capitalize last word
This macro might be a start towards what you want to do. I only did a little testing. It capitalizes the first letter of the word before the view cursor and properly handled an intervening space or punctuation in my test.
Code: Select all
oText = ThisComponent.Text
oCurs = oText.createTextCursor()
oVC = ThisComponent.CurrentController.ViewCursor
oCurs.gotoRange(oVC.Start, False)
oCurs.gotoPreviousWord(False)
oCurs.goRight(1,True)
oCurs.String = UCase(oCurs.String)OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Re: keyboard shortcut to capitalize last word
On LibreOffice only:well, I understand that this is possible, but I'm typing and while I type the mouse is disabled... I really prefer a keyboard quick action, like two or three key-presses.
If the cursor is at the end of the word to capitalize,
Ctrl+Shift+← (left arrow) select the last word,
Shift+F3 change the case. (this is a toogle button for change case: word → Word → WORD → word ...etc)
LibreOffice 6.4.5 on Windows 10
Re: keyboard shortcut to capitalize last word
Similar to gerard24's method, in OpenOffice you can go to the menu Tools -> Customize -> Keyboard, set the Category to Format and the Function to Capitalize Every Word and assign a shortcut to that. You can then use CTRL + Shift + LeftArrow to select the word and your new shortcut to capitalize it.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Re: Keyboard shortcut to capitalize last word
Select the text and use the shortcut Shift+F3 to swap between the different case options.
Cheers,
Cheers,
LibreOffice 4.2.8.2 on Fedora 20 Linux
Re: Keyboard shortcut to capitalize last word
I don't have LO at the moment. Is it really necessary to select the entire word to change the case? I would think that a press of the left arrow key to move the insertion point into the word would suffice.
AOO 4.1.14 on Ubuntu MATE 22.04
Re: Keyboard shortcut to capitalize last word
If you don't have the mouse to use, just go to the start or end of the word and select it with the shift key pressed. Once selected use shift+F3 to toggle the case of the word. It will first put every letter in lower case, then if you press again it will put the first letter in uppercase and the rest in lower, and with the third press it capitalizes all the letters.
AFAIK, it works with Word and OpenOffice, although I've switched to LO long time ago.
Regards,
AFAIK, it works with Word and OpenOffice, although I've switched to LO long time ago.
Regards,
LibreOffice 4.2.8.2 on Fedora 20 Linux