File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -2202,6 +2202,18 @@ function createNewRepoInHTML() {
22022202
22032203 onNextFrame ( pushNewRepoInHTML ) ;
22042204
2205+ } else if ( e . key === 'Escape' ) {
2206+
2207+ e . preventDefault ( ) ;
2208+
2209+ repoEl . blur ( ) ;
2210+
2211+ repoEl . classList . add ( 'hidden' ) ;
2212+
2213+ window . setTimeout ( ( ) => {
2214+ repoEl . remove ( ) ;
2215+ } , 180 ) ;
2216+
22052217 }
22062218
22072219 } ) ;
@@ -2396,6 +2408,18 @@ function createNewFileInHTML() {
23962408
23972409 onNextFrame ( pushNewFileInHTML ) ;
23982410
2411+ } else if ( e . key === 'Escape' ) {
2412+
2413+ e . preventDefault ( ) ;
2414+
2415+ fileEl . blur ( ) ;
2416+
2417+ fileEl . classList . add ( 'hidden' ) ;
2418+
2419+ window . setTimeout ( ( ) => {
2420+ fileEl . remove ( ) ;
2421+ } , 180 ) ;
2422+
23992423 }
24002424
24012425 } ) ;
You can’t perform that action at this time.
0 commit comments