ncmenu: handle section shortcuts when offered #1058

dankamongmen/xcb
nick black 4 years ago committed by Nick Black
parent e885d87d1a
commit a1a4087ca7

@ -586,7 +586,19 @@ bool ncmenu_offer_input(ncmenu* n, const ncinput* nc){
ncmenu_unroll(n, i);
}
return true;
}else if(n->unrolledsection < 0){ // all following need an unrolled section
}
for(int si = 0 ; si < n->sectioncount ; ++si){
const ncmenu_int_section* sec = &n->sections[si];
if(sec->enabled_item_count == 0){
continue;
}
if(!ncinput_equal_p(&sec->shortcut, nc)){
continue;
}
ncmenu_unroll(n, si);
return true;
}
if(n->unrolledsection < 0){ // all following need an unrolled section
return false;
}
if(nc->id == NCKEY_LEFT){

Loading…
Cancel
Save