Right-click test not working? Check mode and menu

Illustrated explainer. Illustrated diagrams explain logical secondary input, target-scoped counting, menu handling and reset.

Read the video transcript

Illustrated secondary-button pipeline with inside-target and outside-target comparison.
Use this visual summary alongside the steps below. Open the diagram at full size. Illustrations explain the task; they are not recorded hardware measurements.

If a right-click test does not count, check the selected mode and where you press before changing mouse settings. The tool accepts secondary-button input only in its stationary right-click mode, and its pointer handler is attached to the test target. Opening a browser menu elsewhere on the page is not a counted attempt.

Choose the secondary-button task

Open the right-click test and confirm the active input mode. In the component, a pointer event with button value 2 is treated as secondary input. That event counts only when right-click input is allowed; the moving-target mode does not enable it. A normal primary-click task or a Space task should not be assumed to accept secondary presses.

The MDN button reference identifies value 2 as the secondary button and explains that button assignments can be configured. “Right” is therefore the familiar task name, while the browser reports a logical button role. If your physical buttons are reassigned, record the assignment and test the control that sends secondary input.

Press inside the active target

Move the pointer clearly inside the visible test area and make one deliberate secondary press. The handler uses pointerdown, so registration is associated with the press rather than waiting for release. In a ready stationary right-click task, that first accepted input starts the timer and contributes to the total.

Presses on the article text, browser toolbar or controls outside the target are not target input. A test area that is partly off screen can make this confusing: you may be pressing a nearby page element. Reset the test if it has finished, make the target visible, and check the count after a single deliberate press before attempting a fast sequence.

Understand which context menu is suppressed

The component prevents the contextmenu event's default action on the target. This lets secondary input act as test input without the usual menu covering the target. That listener is target-scoped; it is not a page-wide promise to disable every browser or operating-system menu. The MDN contextmenu reference documents the event and preventing its default menu.

MDN also notes a Firefox exception: Shift plus right-click can display the menu without firing the usual contextmenu event. For a basic diagnostic attempt, release modifier keys and use an ordinary secondary press. A modifier-dependent menu is not, by itself, evidence that the counting logic or mouse switch has failed.

SymptomCheck firstWhat it does not prove
No count from secondary inputStationary right-click modeA failed physical switch
Menu opens outside targetPointer locationBroken target menu handling
Menu with Shift in FirefoxRetry without modifiersOrdinary input is unavailable
Count stops on result screenReset the completed runMouse stopped sending input

Separate expected state from missing input

The finished phase does not accept more clicks. Use the restart or next-test control, verify the new count and timer, then retry. Do not keep pressing on a completed result and interpret the unchanged total as missing hardware input. Also close tool overlays and any open browser menu so the intended target is visible and reachable.

Illustrative decision example: suppose secondary presses open a menu in ordinary page text but do nothing to a primary-click test's count. Switching to stationary right-click mode and pressing inside its target is the relevant next check. The two earlier observations were made in different locations or modes, so they cannot establish a hardware problem. This is a reasoning example, not a recorded experiment.

Write down a reproducible report

Record the browser, route, mouse model if known, button assignment, input mode, target location and test state. Note whether the count changed, whether the timer started and where a menu appeared. “Secondary press inside the ready target, no modifiers, count stays zero” is a much more useful report than “right click broken.”

If the issue remains, compare secondary-button behavior in another application and the same task in another browser. Keep each observation separate. Differences help locate the conditions under which the symptom occurs, but a browser count cannot diagnose a switch, certify the physical clicking technique or establish how another application handles the same input.

The accompanying illustrated diagrams explain target boundaries and event handling; they contain no claimed physical footage. Download the secondary-input troubleshooting report. After resolving input, use the result-reading guide to interpret the completed run.

frequently asked questions

Why does the browser menu still open?

The tool suppresses the context menu on its target. Other locations retain their own behavior, and Firefox documents a Shift-right-click exception.

Does a left-handed mouse still work?

Check which control sends logical secondary input. The tool recognizes button value 2 rather than verifying a physical side.

Can this diagnose a faulty mouse?

No. Record mode, location and state, then compare other environments before drawing conclusions.

try it yourself

keep reading