[Solved] Change function of Tab key

Discuss the word processor
Post Reply
stebobibo
Posts: 20
Joined: Thu Jun 10, 2021 1:00 pm

[Solved] Change function of Tab key

Post by stebobibo »

How would you change the function of a regular key (like a-z keys, numbers, other punctiation, etc). The hotkeys menu I was able to find seems to be only able to change the function of hotkeys for openoffice tasks. This is Tools>Customize>Keyboard Tab. From it I can only customize processes of the writer program, but not what basic key presses do.

Specifically, right now I want to change what the tab button does. I want to make it so that instead of moving to specific tab stops when I press it (which it does even if I haven't set my own tab stops), it just does a "long space". Like let's say the equivalent of pressing the space bar 5 times. Is this possible? If not is there another work around? I want to be able to conveniently make a uniform large space with the press of a button. Thank you!
Last edited by MrProgrammer on Mon Mar 11, 2024 10:15 pm, edited 1 time in total.
I'm using Windows 10
User avatar
RoryOF
Moderator
Posts: 35210
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Change the fuction of a regular key (in my case, tab)?

Post by RoryOF »

It would be helpful to know why you want "uniformly long space". If you require this for indenting text there may be other ways to do that.

In addition, such a "long space" as you seek may become distorted if you apply paragraph formatting.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
Bill
Volunteer
Posts: 8952
Joined: Sat Nov 24, 2007 6:48 am

Re: Change the fuction of a regular key (in my case, tab)?

Post by Bill »

You should post your operating system in your signature. If you're using Windows, look at AutoHotKey .
AOO 4.1.14 on Ubuntu MATE 22.04
User avatar
MrProgrammer
Moderator
Posts: 5432
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Change the fuction of a regular key (in my case, tab)?

Post by MrProgrammer »

stebobibo wrote: Sat Mar 02, 2024 5:45 pm Specifically, right now I want to change what the tab button does.
The Tab key is fundamental to the operation of OpenOffice, and fortunately you cannot customize its function because doing so would cause features to break and you would have to attempt to undo your customization. Consider using Writer's AutoText feature instead.

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
User avatar
RoryOF
Moderator
Posts: 35210
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Change the fuction of a regular key (in my case, tab)?

Post by RoryOF »

Or if you explain your desired formatting, we may be able to advise a better way.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
JeJe
Volunteer
Posts: 3132
Joined: Wed Mar 09, 2016 2:40 pm

Re: Change the fuction of a regular key (in my case, tab)?

Post by JeJe »

Not sure what you mean by a long space but you can run any command or your own macro on pressing the tab by using a keyhandler. Macros will have to be enabled for the attached document showing this.
Attachments
key handler for tab.odt
(11.01 KiB) Downloaded 124 times
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
User avatar
Hagar Delest
Moderator
Posts: 33633
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Change the fuction of a regular key (in my case, tab)?

Post by Hagar Delest »

Or maybe easier, create an AutoText with five spaces, then give it a shortcut and it will do the job in few keystrokes.

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the 🖉 button if your issue has been fixed.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
stebobibo
Posts: 20
Joined: Thu Jun 10, 2021 1:00 pm

Re: Change the fuction of a regular key (in my case, tab)?

Post by stebobibo »

Hey guys, sorry for being so long getting back to this. I'll adress some of the comments.

RoryOF wrote: Sat Mar 02, 2024 5:54 pm It would be helpful to know why you want "uniformly long space". If you require this for indenting text there may be other ways to do that.

In addition, such a "long space" as you seek may become distorted if you apply paragraph formatting.
For a document I'm working on. Indenting makes it look stupid. I want certain text spaced evenly apart (recurs through the document). Counting how many times I press spacebar and applying that every time would be a hassle. Copy-pasting the empty space is also a bad solution; I'm already using my clipboard a lot in this document.
Bill wrote: Sat Mar 02, 2024 6:42 pm You should post your operating system in your signature. If you're using Windows, look at AutoHotKey .
Ok, I'll try to figure out doing that with the signature after I post this. Windows 10.
MrProgrammer wrote: Sat Mar 02, 2024 6:56 pm The Tab key is fundamental to the operation of OpenOffice, and fortunately you cannot customize its function because doing so would cause features to break and you would have to attempt to undo your customization. Consider using Writer's AutoText feature instead.
It would be ideal to use tab, but any key that's not frequently used will do.
JeJe wrote: Sat Mar 02, 2024 11:28 pm Not sure what you mean by a long space but you can run any command or your own macro on pressing the tab by using a keyhandler. Macros will have to be enabled for the attached document showing this.
I tried your macro, but couldn't get it to work. I did go into settings and allow macros. Still got nothing. I haven't used macros before. I did click tools>macros>run macro and it said "OO requires a java runtime environment to perform this task. please instal and restart OO." So I have to install something first? And where's a safe place to install that? Maybe another solution is better for a noob like me.
Hagar Delest wrote: Sun Mar 03, 2024 12:36 pm Or maybe easier, create an AutoText with five spaces, then give it a shortcut and it will do the job in few keystrokes.

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the 🖉 button if your issue has been fixed.
Okay, thanks. Is there a tutorial that explains how to do that in layman's terms?
I'm using Windows 10
User avatar
robleyd
Moderator
Posts: 5509
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: [Solved] Change function of Tab ket

Post by robleyd »

Is there a tutorial that explains how to do that in layman's terms
Open the offline HELP - F1 - and search autotext. The resulting instructions seem fairly straight forward.
Slackware 15 (current) 64 bit
Apache OpenOffice 4.1.16
LibreOffice 26.2.3.2; SlackBuild for 26.2.3 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
Post Reply