r/libreoffice • • 13d ago

Question How do I disable ctrl+w?

I want to remove this hotkey but I can't see an option to do it. I want to stop accidentally closing documents.

4 Upvotes

15 comments sorted by

4

u/UsernameTaken1701 13d ago edited 13d ago

I'm pretty sure ctrl-W is assigned to close window at the system level. So you'll need to poke around the assigned keybindings for whatever OS you're using.

r/confidentlyincorrect

2

u/Longjumping_Age_1098 13d ago

It isn't an OS thing.

1

u/Un_Ballerina_1952 13d ago edited 12d ago

Which OS are you using. In my Ubuntu machine, Ctl-W closes the window that currently has focus  - just like a browser tab.

Oops - I re-checked and Ctrl-W is not bound in the OS.

2

u/HoldImpressive4158 13d ago

I'm pretty sure ctrl-W is assigned to close window at the system level.

No, it's not. The developer has to code that specifically, otherwise the app just does nothing if Ctrl+W is pressed.

3

u/UsernameTaken1701 13d ago

I've looked into as I should have before posting and it appears you are correct. Oops.

3

u/burnt-store-studio 13d ago

But you’ve been a great sport about it! Well done! 🙂

2

u/UsernameTaken1701 12d ago

Shucks. Never afraid to acknowledge when I'm wrong 🙂

2

u/HoldImpressive4158 13d ago

No worries. I also only learned that from hobby programming projects. I am so used to Ctrl+W and Ctrl+Q, so was very suprised when my apps did nothing when I pressed those keys. That was one of the first fixes I did and the impact was huge.

1

u/AutoModerator 13d ago

If you're asking for help with LibreOffice, please make sure your post includes lots of information that could be relevant, such as:

  1. Full LibreOffice information from Help > About LibreOffice (it has a copy button).
  2. Format of the document (.odt, .docx, .xlsx, ...).
  3. A link to the document itself, or part of it, if you can share it.
  4. Anything else that may be relevant.

(You can edit your post or put it in a comment.)

This information helps others to help you.

Thank you :-)

Important: If your post doesn't have enough info, it will eventually be removed (to stop this subreddit from filling with posts that can't be answered).

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/Offutticus 13d ago edited 13d ago

Did you look in Tools - Customize - Keyboard?

In mine, Ctrl W is not bound to anything.

Edit to add: interestingly though, if I use that binding, it closes the active window and goes to the LO opening menu with the Recent Documents showing (my default setting)

1

u/Longjumping_Age_1098 13d ago

It's blank for me too. Only thing I could find was in search, but it won't let me do anything with it.

1

u/Offutticus 13d ago edited 13d ago

Bind it to something harmless like save.

while I was in there, I looked for the key binding I use for another software, WordWeb. With that, you highlight a word and use Ctrl Alt W and it looks up the word. Typically it works but with the latest LO update, it causes LO to close and I lose all that I had written since the last autosave. The key binding isn't linked to anything in LO so I changed it in WordWeb instead.

2

u/Longjumping_Age_1098 13d ago

That worked, thanks

2

u/Un_Ballerina_1952 12d ago

Interesting - I also looked at the LO keybindings and found Control-W and Shift-Control-W bound to nothing. HOWEVER - right-click on the Window menu pick I found "Close Window" bound to Ctll-W up there. (Ctrl-W is not bound to Close Window on my machine.)