ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

Search bar not auto-selected when opening a new tab in window mode on macOS

Open 0xkon1 opened this issue 1 year ago • 1 comments

When using the browser on macOS, opening a new tab in windowed mode (which is the default mode the browser starts in) does not automatically focus on the search bar. This requires the user to manually click on the search bar in order to type. However, when the browser is switched to fullscreen mode, opening a new tab does auto-select the search bar, allowing immediate typing.

Steps to Reproduce:

  1. Open Ladybird Browser on macOS.
  2. Ensure the browser is in windowed mode (not fullscreen).
  3. Open a new tab.
  4. Attempt to type in the search bar.

Expected Behavior: The search bar should automatically be selected when a new tab is opened, allowing immediate typing without needing to manually click the search bar.

Actual Behavior: In windowed mode, the search bar is not selected automatically, and the user must manually click into the search bar to begin typing. This behavior does not occur in fullscreen mode, where the search bar is auto-selected as expected.

Operating System: macOS 14.6.1 (23G93)

Browser Chrome: AppKit

I would like to try and fix this bug myself, however I am not sure of my skills so any support in pointing me in the right direction is appreciated.

0xkon1 avatar Sep 24 '24 13:09 0xkon1

This works for me with the latest build of ladybird

kostyafarber avatar Sep 25 '24 05:09 kostyafarber

I have tried the new build, but unfortunately the issue seems to persist. Still when opening a new tab using cmd+t the search bar is not being auto-focussed. As before the issue only appears when using Ladybird in window mode, the focus works like intended in full screen mode.

0xkon1 avatar Nov 28 '25 11:11 0xkon1

Nevermind. Good job, it is fixed. My build environment was completely messed up and no actually building the newest version. The fix works!

0xkon1 avatar Nov 28 '25 12:11 0xkon1