Ledge

A keyboard shortcut to show and hide a Mac panel

A panel is a window you want on screen for a moment and gone the next: a scratchpad, a calculator, a place to set a file down. What makes a panel useful is rarely the panel itself. It is the switch that summons it. If you have to reach for the mouse, find an icon, and click, the panel is just another window competing for space. If one key combination brings it forward and the same combination sends it away, it becomes something you reach for without thinking.

This is about how that toggle works on a Mac, why the good ones feel immediate, and how to set one up for yourself.

What a show and hide shortcut actually does

A true toggle binds a single gesture to two opposite actions and decides which one to run based on what is currently on screen. Press the key when the panel is hidden and it appears. Press the same key when the panel is showing and it goes away. You never have to remember two shortcuts, and you never have to check the state first. Your hand does the same thing every time, and the app works out whether that means open or close.

This matters more than it sounds. A separate show shortcut and hide shortcut asks you to know, before you act, whether the thing is already up. That is a small mental tax, paid every single time. A toggle removes it. You form one habit, the muscle memory settles in within a day, and after that the panel feels less like software and more like a light switch on the wall.

Why the shortcut matters more than the panel

Consider what happens when there is no shortcut at all. You want the panel, so you move the mouse to the menu bar or the Dock, hunt for the right icon among a dozen others, and click. The panel opens. You use it for four seconds. Then you have to dismiss it, which means clicking somewhere else or finding a close control. The interaction is over in moments, but the friction around it is longer than the useful part.

A keyboard toggle collapses all of that. The panel is one chord away whether you are in a browser, a terminal, or a full screen video call. You do not change context, you do not move your hand off the keys, and you do not lose your place. The panel arrives, does its job, and leaves, and your attention barely moves.

There is a reliability point too. A shortcut that works from every app, including full screen apps, is worth far more than one that only works when a particular window has focus. The best toggles register globally with the system, so they answer no matter what you are looking at.

Where macOS already gives you toggles

You are probably using a few of these without naming them. Spotlight is the clearest example: one gesture, Command and Space by default, opens the search field, and the same habit, or a tap of Escape, closes it. Mission Control and the app switcher work on the same idea. Press, glance, release, and you are back where you were.

These built in toggles set the standard for how the pattern should feel: instant, global, and reversible with the same movement. When you add your own panels to the mix, aim for that same standard. Anything slower or less predictable will get abandoned.

Building your own toggle for a custom panel

Plenty of the panels you might want are not built into macOS. A quick capture note, a color picker, a place to stage files you are about to move somewhere. For those, you want an app that registers a global hotkey and treats it as a toggle.

Ledge is one example of this pattern done deliberately. It turns the strip around the MacBook notch into a shelf where you can set files, folders, images, and links for a moment. The shelf opens with Option and Space by default, and pressing the same combination again closes it. One gesture, both directions, from any app. You can also click the notch to bring the shelf down if your hand is already on the mouse, but the shortcut is the fast path.

Two details are worth knowing if you care about how these things are wired. Ledge uses a Carbon hotkey to register that shortcut, which means it needs no special permission to listen for the key. Some toggle apps ask for accessibility access at launch, which can feel heavy for something as simple as showing a panel. Ledge only asks for accessibility later, and only if you use a feature that genuinely requires it, such as pasting a file path straight into a terminal. The plain show and hide behaviour costs you nothing up front.

What makes a toggle feel right

A few things separate a toggle you keep from one you turn off after a week. It should be reversible with the same gesture, so you never think about state. It should be global, so it answers from any app. It should be fast, appearing within the same frame or two, because any lag breaks the illusion that the panel was always there. And the key you pick should be one your other apps are not fighting over, so it never does two things at once.

If you get those right, the panel stops being a thing you manage and becomes a place you glance at. That is the whole point of a show and hide shortcut on the Mac: not the window, but the effortless in and out. Set one up for the panel you reach for most, live with it for a few days, and you will notice how much of the old clicking and hunting quietly disappears.