Windows – Why doesn’t Ctrl+F4 work in Notepad++

keyboard shortcutsnotepadwindows

Why does Ctrl + F4 not close a document that has been opened in Notepad++? Is there a way to enable it?

I have started using Notepad++ today and I expected Ctrl + F4 to close the current document as in most other applications
on the Microsoft Windows platform (both non-Microsoft and Microsoft applications) with MDI (multiple document interface) or TDI (Tabbed document interface) interfaces:
UltraEdit, Opera, Eudora, Firefox, OpenOffice, Visual
Studio, etc.

Is there a reason for this?

Platform: Notepad++ v5.4.5, Windows XP 64 bit SP2, 8 GB RAM.

(Note: it is not enabled by default, but actually it can be enabled by changing the keyboard shortcut from Ctrl + W to Ctrl + F4: menu Settings -> Shortcut Mapper -> line 8, Close -> <right click> on Ctrl+W -> Modify -> Ctrl, F4 -> OK -> Close.)

Best Answer

I don't actually know why it is set to be Ctrl + W but to answer your other question: To change the default tab closing behaviour, go to Settings > Shortcut Mapper. Change the Close shortcut [8] to Ctrl + F4