Why Is Alt+F4 The Hotkey For Closing A Window? Why Not Alt+F5 Or Alt ...

Skip to main content
  • Dev Blogs
  • The Old New Thing
  • Why is Alt+F4 the hotkey for closing a window? Why not Alt+F5 or Alt+F3?
Raymond Chen Raymond Chen Show more

In a One Dev Question video, I discussed why Alt+F4 is the hotkey for closing a window. That explains why it’s a function key rather than an alphabet key, but why F4 specifically? Why not F5 or F3?

It’s F4 because that was the next key available.

The hotkeys according to CUA were as follows:

  • Alt+F10: Maximize
  • Alt+F9: Minimize
  • Alt+F8: Resize
  • Alt+F7: Move
  • Alt+F6: Switch windows within an app
  • Alt+F5: Restore
  • Alt+F4: Close

Most of these hotkeys died out over time due to disuse. The ones that remain active today are Alt+F6 and Alt+F4.

Wait, what about F11 and F12? Why were they skipped over?

The original IBM PC keyboard didn’t have F11 or F12 function keys. The function keys went up to F10.

1 0 0
  • Facebook Share on Facebook
  • Share on X
  • LinkedIn Share on Linkedin
CategoryOld New ThingTopicsHistory Share

Author

Raymond ChenRaymond Chen

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

0 comments

Discussion is closed.

Code of Conduct

Read next

September 19, 2018

Why did every Windows 3.0 DLL have an exported function called WEP?

Raymond Chen Raymond Chen October 9, 2018

The numerology of the sample directory listing in the Windows 95 font selector property sheet page

Raymond Chen Raymond Chen

Stay informed

Get notified when new posts are published. Email * Country/Region * Select...United StatesAfghanistanÅland IslandsAlbaniaAlgeriaAmerican SamoaAndorraAngolaAnguillaAntarcticaAntigua and BarbudaArgentinaArmeniaArubaAustraliaAustriaAzerbaijanBahamasBahrainBangladeshBarbadosBelarusBelgiumBelizeBeninBermudaBhutanBoliviaBonaireBosnia and HerzegovinaBotswanaBouvet IslandBrazilBritish Indian Ocean TerritoryBritish Virgin IslandsBruneiBulgariaBurkina FasoBurundiCabo VerdeCambodiaCameroonCanadaCayman IslandsCentral African RepublicChadChileChinaChristmas IslandCocos (Keeling) IslandsColombiaComorosCongoCongo (DRC)Cook IslandsCosta RicaCôte dIvoireCroatiaCuraçaoCyprusCzechiaDenmarkDjiboutiDominicaDominican RepublicEcuadorEgyptEl SalvadorEquatorial GuineaEritreaEstoniaEswatiniEthiopiaFalkland IslandsFaroe IslandsFijiFinlandFranceFrench GuianaFrench PolynesiaFrench Southern TerritoriesGabonGambiaGeorgiaGermanyGhanaGibraltarGreeceGreenlandGrenadaGuadeloupeGuamGuatemalaGuernseyGuineaGuinea-BissauGuyanaHaitiHeard Island and McDonald IslandsHondurasHong Kong SARHungaryIcelandIndiaIndonesiaIraqIrelandIsle of ManIsraelItalyJamaicaJan MayenJapanJerseyJordanKazakhstanKenyaKiribatiKoreaKosovoKuwaitKyrgyzstanLaosLatviaLebanonLesothoLiberiaLibyaLiechtensteinLithuaniaLuxembourgMacau SARMadagascarMalawiMalaysiaMaldivesMaliMaltaMarshall IslandsMartiniqueMauritaniaMauritiusMayotteMexicoMicronesiaMoldovaMonacoMongoliaMontenegroMontserratMoroccoMozambiqueMyanmarNamibiaNauruNepalNetherlandsNew CaledoniaNew ZealandNicaraguaNigerNigeriaNiueNorfolk IslandNorth MacedoniaNorthern Mariana IslandsNorwayOmanPakistanPalauPalestinian AuthorityPanamaPapua New GuineaParaguayPeruPhilippinesPitcairn IslandsPolandPortugalPuerto RicoQatarRéunionRomaniaRwandaSabaSaint BarthélemySaint Kitts and NevisSaint LuciaSaint MartinSaint Pierre and MiquelonSaint Vincent and the GrenadinesSamoaSan MarinoSão Tomé and PríncipeSaudi ArabiaSenegalSerbiaSeychellesSierra LeoneSingaporeSint EustatiusSint MaartenSlovakiaSloveniaSolomon IslandsSomaliaSouth AfricaSouth Georgia and South Sandwich IslandsSouth SudanSpainSri LankaSt HelenaAscensionTristan da CunhaSurinameSvalbardSwedenSwitzerlandTaiwanTajikistanTanzaniaThailandTimor-LesteTogoTokelauTongaTrinidad and TobagoTunisiaTurkeyTurkmenistanTurks and Caicos IslandsTuvaluU.S. Outlying IslandsU.S. Virgin IslandsUgandaUkraineUnited Arab EmiratesUnited KingdomUruguayUzbekistanVanuatuVatican CityVenezuelaVietnamWallis and FutunaYemenZambiaZimbabwe I would like to receive the The Old New Thing Newsletter. Privacy Statement. Subscribe Follow this blog youtube Are you sure you wish to delete this comment? OK Cancel Sign in Theme Insert/edit link Close URL Link Text Open link in a new tab Search No search term specified. Showing recent items. Search or use up and down arrow keys to select an item. Cancel
Code Block
Paste your code snippet Ok Cancel

Tag » What Does Alt F 4 Do