Currently 'C-P' is mapped to 'PG-UP' and 'C-N to 'PG-DN' and 'C-K' to 'down', 'C-I' to 'up'.
You could patch 'tbfilelist.e' directly and loose your changes / need to re-patch it on next upgrade or maybe hotfix affecting this module.
Here: tbfilelist.e - ctl_filter.up,"c-i"() [line 1196 ff.]:
Or you add this to your own macro module (e.g. vusrmacs.e) to override the default event handler acc. to your needs. You only need to reload your module on next upgrade.
#include 'slick.sh'
defeventtab _tbfilelist_form;
// also redirect list events to filter event handler
void ctl_file_list.'C-N','C-P'()
{
ctl_filter.call_event (ctl_filter,last_event (),'W');
}
void ctl_filter.'C-N','C-P'()
{
key := upcase ( event2name (last_event(null, true)) );
ctl_filter.call_event (ctl_filter, ( ( key :== 'C-N' ) ? C_K : C_I ),'W');
}
But note that 'C-P' / 'C-N' are mapped to 'PG-UP' / 'PG-DN' and 'C-I'/'C-K' to 'up'/'down' by default in all tree controls !
If you want to change the default behaviour of all tree controls you could use this in addition (or patch treeview.e):
defeventtab _ul2_tree;
void _ul2_tree.'C-P'()
{
call_event (p_window_id,up,'2');
}
void _ul2_tree.'C-N'()
{
call_event (p_window_id,down,'2');
}
// in addition to normal page-up/down
void _ul2_tree.'C-I'()
{
call_event (p_window_id,PGUP,'2');
}
void _ul2_tree.'C-K'()
{
call_event (p_window_id,PGDN,'2');
}
Have fun,
HS2