Opened 13 years ago

Closed 11 years ago

#670 closed bug (fixed)

alt-esc won't work for menu traversal with <- and ->

Reported by: kutspam@… Owned by: jackburton
Priority: normal Milestone: R1
Component: - General Version:
Keywords: Cc: diver, axeld
Blocked By: Blocking:
Has a Patch: no Platform: All

Description (last modified by jackburton)

Not sure if this is the right category. Pressing alt and escape won't allow to traverse the top application menu (File, Edit etc.) with the keyboard arrows like in R5.

Change History (8)

comment:1 Changed 13 years ago by diver

Cc: diver added

comment:2 Changed 13 years ago by jackburton

Status: newassigned

comment:3 Changed 13 years ago by jackburton

ALT-ESC now (since hrev18517) opens the menu. But you can't navigate it yet, because menu window don't get keyboard focus yet.

comment:4 in reply to:  3 ; Changed 12 years ago by jackburton

Description: modified (diff)
Platform: All

I had the chance to test the BeOS menu behaviour (after so much time) and here's what I found.

In beos, when a menu window is opened, clicking on a menubar on a different window doesn't make it open a menu. Actually, clicking on any view on another window doesn't produce a MouseDown event in that view (except if the view has the B_ACCEPT_FIRST_CLICKS flag). This isn't the case in haiku.

Test case:

  • Open Terminal
  • Click on the "Terminal" menu item
  • Click with the right mouse button on the desktop tracker window.

In BeOS: The Terminal menu will close In Haiku: The Terminal menu will close, and the desktop context menu will open.

This causes many kinds of problems, and AFAIK is is only fixable in the app server, right ? Axel ?

comment:5 in reply to:  4 Changed 12 years ago by jackburton

Replying to jackburton:

Looking in WindowLayer.cpp (WindowLayer::MouseDown()) I found this: eat the click if we don't accept first click if ((Flags() & (B_WILL_ACCEPT_FIRST_CLICK | B_AVOID_FOCUS)) == 0)

return;

This doesn't make much sense to me. We aren't exiting the loop if the window has the B_AVOID_FOCUS flag set.

comment:6 Changed 12 years ago by jackburton

Cc: axeld added
Status: assignednew

comment:7 in reply to:  4 Changed 12 years ago by jackburton

Replying to jackburton:

I had the chance to test the BeOS menu behaviour (after so much time) and here's what I found.

In beos, when a menu window is opened, clicking on a menubar on a different window doesn't make it open a menu. Actually, clicking on any view on another window doesn't produce a MouseDown event in that view (except if the view has the B_ACCEPT_FIRST_CLICKS flag). This isn't the case in haiku.

Actually this very issue seems to have been fixed in hrev19857. The original bug still remains, though.

comment:8 Changed 11 years ago by jackburton

Resolution: fixed
Status: newclosed

Works since a few revisions, or at least, since hrev23389

Note: See TracTickets for help on using tickets.