File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ export class AppShell extends BaseCustomWebComponentConstructorAppend {
199199
200200 let loadAllImports = window . location . search . includes ( "loadAllImports" ) ;
201201
202- const loadPkg = async ( e ) => {
202+ const loadPkg = async ( ) => {
203203 const pkgName = this . _npmInput . value ;
204204 if ( pkgName . startsWith ( 'http://' ) || pkgName . startsWith ( 'https://' ) ) {
205205 const observedCustomElementsRegistry = new ObservedCustomElementsRegistry ( ) ;
@@ -232,7 +232,11 @@ export class AppShell extends BaseCustomWebComponentConstructorAppend {
232232 }
233233 this . _npmInput . value = '' ;
234234 }
235- this . _npmInput . onkeydown = loadPkg ;
235+ this . _npmInput . onkeydown = ( event ) => {
236+ if ( event . key === 'Enter' ) {
237+ loadPkg ( ) ;
238+ }
239+ } ;
236240 this . _getNpm . onclick = loadPkg ;
237241
238242 let code = "" ;
You can’t perform that action at this time.
0 commit comments