NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
49.06k stars 5.65k forks source link

CodeBrowser focuses on menu bar after releasing forward/back hotkey (containing `alt`) #6654

Open shuffle2 opened 1 week ago

shuffle2 commented 1 week ago

Describe the bug CodeBrowser focuses on menu bar after releasing forward/back hotkey (containing alt)

To Reproduce Navigate in the disasm view such that location history will be populated. Use alt+ left arrow, right arrow to navigate back and forth through the history. Note that sometimes, releasing the alt key results in focus being transferred to CodeBrowser's File...Edit...Analysis...etc menubar (the cursor in disasm view will be lighter color, and text in the menubar will have hotkey characters underlined). -> need to hit esc or alt again to return focus to disasm view.

Expected behavior Focus does not leave original window view.

Environment (please complete the following information):

Additional context This is not a new problem (not related to recent focus changes).

dragonmacher commented 1 week ago

I tried this on Linux, Mac and Windows. Windows is the only OS I see the the problem on. I'm investigating the issue more.

dragonmacher commented 1 week ago

Workarounds:

1) You can remap the keybindings to not use the Alt key.

2) You can change the Look and Feel by switching themes from Edit -> Theme -> Switch...

The Nimbus LaF and the Metal LaF both do not have the issue. Some of the other non-Windows LaFs seem to still use the Alt key to activate the menu.

shuffle2 commented 1 day ago

Thanks, for the time being I'm using the Metal LaF workaround.