Skip to content

Difference between Mac and Windows in how focus is handled #320

Open
@magreenblatt

Description

@magreenblatt

Original report by Jonathan Kwang (Bitbucket: jonathankwangMW).


There seems to be a difference with how jcef handles mouse clicks between the Windows and Mac environments. The issue is specifically on a Mac where if there is a mouse click that occurs outside of the browser window, the browser loses focus even if focus was not transferred to any other element in the UI.

This can be reproduced in the test app by adding a unfocusable JLabel to the content pane of MainFrame.java in place of the ControlPanel of the detailed app. (I've attached a modified MainFrame.java file which does this) When running the app, on Windows clicking on the JLabel will keep focus in the browser window (i.e you can still type into the google search box) and on a Mac clicking on the JLabel causes the browser to lose focus and you need to manually click into the browser window to type into the google search box.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions