Commit 0cd03567 authored by Yoann Peronneau's avatar Yoann Peronneau

* modules/gui/ncurses.c: use <space> in the filebrowser to add the selected...

 * modules/gui/ncurses.c: use <space> in the filebrowser to add the selected directory to the playlist.
parent 50fd08c3
......@@ -564,7 +564,8 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
case KEY_ENTER:
case 0x0d:
if( p_sys->pp_dir_entries[p_sys->i_box_bidx]->b_file )
case ' ':
if( p_sys->pp_dir_entries[p_sys->i_box_bidx]->b_file || i_key == ' ' )
{
int i_size_entry = strlen( p_sys->psz_current_dir ) +
strlen( p_sys->pp_dir_entries[p_sys->i_box_bidx]->psz_path ) + 2;
......@@ -1262,6 +1263,11 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
MainBoxWrite( p_intf, l++, 1, " <backspace> Delete an entry" );
MainBoxWrite( p_intf, l++, 1, "" );
MainBoxWrite( p_intf, l++, 1, "[Filebrowser]" );
MainBoxWrite( p_intf, l++, 1, " <enter> Add the selected file to the playlist" );
MainBoxWrite( p_intf, l++, 1, " <space> Add the selected directory to the playlist" );
MainBoxWrite( p_intf, l++, 1, "" );
MainBoxWrite( p_intf, l++, 1, "[Boxes]" );
MainBoxWrite( p_intf, l++, 1, " <up>,<down> Navigate through the box line by line" );
MainBoxWrite( p_intf, l++, 1, " <pgup>,<pgdown> Navigate through the box page by page" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment