[CrOS Settings] Allow context menu on PIN keyboard.
The PIN keyboard previously disallowed viewing a context menu (i.e., the menu shown when right-clicking). The reasoning for this change was that some users on touch screens would enter several digits, then decide they wanted to delete these digits and do so by pressing and holding the PIN keyboard's backspace button. Chrome OS would consider this a long press, which causes a context menu to be displayed. This CL fixes this issue by: (1) Moving the listener to the backspace button instead of on the entire element. (2) Editing the handler function to inspect the mouse button before blocking the context menu. In this case, button value 0 means a long press and button value 3 means a right-click. This CL ensures that the context menu is only blocked by a long press. Bug: 1004974 Change-Id: I93f60a77a8b374039f23f78561ebb73a667a905b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1851044 Auto-Submit: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by:Steven Bennetts <stevenjb@chromium.org> Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#704691}
Showing
Please register or sign in to comment