Enable Ctrl+Click (Open New Tab) Behavior for “Go to” Event Handlers

Description/Context:
I’m using the Table component’s “link” column type alongside the “click cell” event handler to navigate to different pages/apps/URLs. However, my end-users expect that holding Ctrl (or Cmd on Mac) while clicking a link will open it in a new tab, while a normal click opens it in the current tab. This is a common convention in browsers and standard HTML links, but currently, there’s no easy way to replicate this behavior with Retool’s link columns.

Current Workarounds:

  • If I only need to open a URL, I can replace the link column with a custom HTML column that uses plain <a> tags:
<a href="baseUrl/{{ item }}">{{ item }}</a>

This supports the typical “Ctrl+Click to open in new tab” behavior. However, it loses the styling and configuration convenience offered by the link column type.

  • For “Go to page” or “Go to app” actions, there’s no straightforward workaround in HTML that preserves the Retool behavior while adding a Ctrl+Click new-tab option.

Proposed Solutions:

  1. Add a Toggle – Introduce an option in the Table’s link column settings (or the event handler settings) that allows “Open in new tab on Ctrl+Click” while continuing to open in the same tab on a normal click.
  2. API to Detect Key Press – Provide a way for event handlers to detect which key modifiers (Ctrl, Shift, etc.) are pressed, so we could programmatically decide whether to open in a new tab or the same tab.
4 Likes

Had a similar issue when I wanted to do this dynamically (workaround with shortcuts) but it's certainly not a native behavior as we expect.

Additionally I've seen this pop-up if you're populating navigation based on user preferences or permissions using modifier keys doesn't work.

1 Like

Hello @TobiasOhlsson,

Thank you for the detailed write up and examples.

I can definitely make a feature request for adding in functionality to allow for opening links in new tab when clicked with ctrl/cmd :+1: