Commit 6ad1ebef authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

macviews: never show mnemonics

Even when the parent MenuButton has keyboard focus, mnemonics should never
show on Mac.

Bug: 836964
Change-Id: If3906f664387c2730bc18f2c2bf638de6025c597
Reviewed-on: https://chromium-review.googlesource.com/1050068Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558300}
parent c191a2d5
...@@ -204,6 +204,8 @@ bool MenuRunnerImpl::ShouldShowMnemonics(MenuButton* button) { ...@@ -204,6 +204,8 @@ bool MenuRunnerImpl::ShouldShowMnemonics(MenuButton* button) {
show_mnemonics |= ui::win::IsAltPressed(); show_mnemonics |= ui::win::IsAltPressed();
#elif defined(USE_X11) #elif defined(USE_X11)
show_mnemonics |= ui::IsAltPressed(); show_mnemonics |= ui::IsAltPressed();
#elif defined(OS_MACOSX)
show_mnemonics = false;
#endif #endif
return show_mnemonics; return show_mnemonics;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment