RFR: 8087863: Mac: "Select All" within ListView/TreeView is handled differently depending on the useSystemMenuBar value [v3]

Martin Fox mfox at openjdk.org
Wed Oct 9 14:44:07 UTC 2024


On Tue, 8 Oct 2024 19:17:47 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> so here is an unrelated question - if we assume that the controls should only consume the event if it effected a change in said control, what should command-A do in case of a focused empty ListView? should it consume the vent or not?

If the focus is clearly in the list view I think it would be surprising if Cmd+A was acted on further up the scene graph. Most of the discussion of event consumption has been around keys like ESCAPE where the user sometimes expects it to act locally (like canceling editing) and sometimes further out (like dismissing a dialog). I don't think that expectation applies to Cmd+A.

On the other hand a user might not perceive an empty list view as being the center of attention. It's not like an empty text field that has a blinking cursor.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1528#issuecomment-2402539899


More information about the openjfx-dev mailing list