1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-09 17:46:31 +02:00

unset focus after changing the directory via #currentDir input field

This commit is contained in:
Marco Dickert
2017-08-04 17:36:57 +02:00
parent 5b8c1a9ad4
commit 44cc585fa4
3 changed files with 3 additions and 0 deletions

View File

@@ -2575,6 +2575,7 @@ function IFM( params ) {
if( e.keyCode == 13 ) { if( e.keyCode == 13 ) {
e.preventDefault(); e.preventDefault();
self.changeDirectory( e.target.value, { absolute: true } ); self.changeDirectory( e.target.value, { absolute: true } );
e.target.blur();
} }
}; };
if( self.config.remoteupload ) if( self.config.remoteupload )

View File

@@ -2575,6 +2575,7 @@ function IFM( params ) {
if( e.keyCode == 13 ) { if( e.keyCode == 13 ) {
e.preventDefault(); e.preventDefault();
self.changeDirectory( e.target.value, { absolute: true } ); self.changeDirectory( e.target.value, { absolute: true } );
e.target.blur();
} }
}; };
if( self.config.remoteupload ) if( self.config.remoteupload )

View File

@@ -1544,6 +1544,7 @@ function IFM( params ) {
if( e.keyCode == 13 ) { if( e.keyCode == 13 ) {
e.preventDefault(); e.preventDefault();
self.changeDirectory( e.target.value, { absolute: true } ); self.changeDirectory( e.target.value, { absolute: true } );
e.target.blur();
} }
}; };
if( self.config.remoteupload ) if( self.config.remoteupload )