paper-dropdown-menu icon indicating copy to clipboard operation
paper-dropdown-menu copied to clipboard

Unable to programmatically test "Enter" key behavior.

Open freshp86 opened this issue 9 years ago • 0 comments

I am trying to write a simple test where I simulate an "Enter" keystroke on a menu item and then I assert that the current selection of the menu has changed. Even though a real "Enter" keystroke works, the programmatic one does not do anything, see minimal repro case at https://jsfiddle.net/j4rfjasf/9/.

I tried several variations (for example opening the menu before firing the event, as well as firing different types of events, keyup, keydown, keypress), without success. Any help is appreciated.

freshp86 avatar Jul 13 '16 00:07 freshp86