Skip to content

Commit bca85ac

Browse files
author
Graham Butler
committed
Add handling for Tab keypress
1 parent b1428a4 commit bca85ac

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@author.io/element-menu",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "author-menu custom element (web component).",
55
"main": "dist/author-menu.min.js",
66
"scripts": {

showroom/dist/css/main.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

showroom/dist/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* author-menu-showroom v1.0.0 generated on Tue Mar 26 2019.
3-
* Built at 22:13:13 GMT-0700 (Pacific Daylight Time)
2+
* author-menu-showroom v1.0.0 generated on Wed Mar 27 2019.
3+
* Built at 18:28:20 GMT-0700 (Pacific Daylight Time)
44
* Copyright (c) 2019 Author.io
55
*/
66
"use strict";var Demo=new NGNX.VIEW.Registry({selector:".demo",namespace:"demo.",init:function(){console.log("works")}});

src/element.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ class AuthorMenuElement extends AuthorBaseElement(HTMLElement) {
149149
startIndex
150150
}, this.optionsElement)
151151

152-
default: return
152+
case 9:
153+
case 'Tab':
154+
this.open = false
155+
break
153156
}
154157
},
155158

0 commit comments

Comments
 (0)