Stop F10 from opening the 'file' menu?

已回答

In IntelliJ IDEA (and derivatives, e.g. Android Studio, PyCharm) press F10 when in a normal edit window opens the "file" menu.  I don't really like this behaviour -- can I change it? I can't see anything relevant in the keymap.

This is on Windows and Linux. I'm aware of this other thread but a) it's not been answered and b) it's talking about messing with dconf on Linux. I'd like a solution inside of IntellJ IDEA, if one is possible?

(The reason I want to change it is I like f10 as single step, and often mashing f10 a few times, or pressing it too soon before the debugger has properly opened, and the menu pops up and causes havoc)

4

It's not specific to IntelliJ IDEA, pretty much any Windows app will work the same: https://support.microsoft.com/en-gb/help/126449/keyboard-shortcuts-for-windows.

  • F10: Activates menu bar options
1
Avatar
Permanently deleted user

 Serge Baranov ; okay then, how can I turn off that feature. I want to use F10 key only for 'Step Over', not activating menu bar. I am using Pycharm on Ubuntu machine. and my keymap setting is visual studio.

0

I don't think there is a way to disable F10 shortcut activating the menu on Windows. You can try asking at some Windows specific support forums.

0

Whilst it's a UI guidelines, it's not required. Plenty of apps don't implement this 'feature'.  (e.g. https://msdn.microsoft.com/en-us/library/windows/desktop/ms646286(v=vs.85).aspx). 

So it's either IDEA, or the gui toolkit that they're using, that implements this 'feature'.  e.g. :

 

https://stackoverflow.com/questions/25501976/how-to-disable-f10-default-action-in-window-show-window-menu

 

 

1

It's not required but is enabled by default in most UI frameworks. There are special steps needed to disable handling F10 and most apps do not disable it.

There is a related issue logged at https://youtrack.jetbrains.com/v2/issue/IDEA-138429, feel free to vote.

2
Avatar
Permanently deleted user

Change the default key mapping through: Settings/Keymap/ and set Keymap to Visual Studio. This will map F10 to "step over", and remap the other debugging keys (F11, Shift-F11, etc.) as well.

0

请先登录再写评论。