1
0
Fork 0

property browser: shift click on the "." entry dumps the contents of that

dir level to the terminal (remember: ctrl-click -> toggle additional info,
and ctrl-click on ".." move to root level)
This commit is contained in:
mfranz 2007-05-03 19:00:55 +00:00
parent 19e2e7a461
commit 7e070759ad

View file

@ -143,6 +143,7 @@ void PropertyList::handle_select(puObject *list_box)
PropertyList *prop_list = (PropertyList *)list_box->getUserData();
int selected = list_box->getIntegerValue();
int mod_ctrl = fgGetKeyModifiers() & KEYMOD_CTRL;
int mod_shift = fgGetKeyModifiers() & KEYMOD_SHIFT;
if (selected >= 0 && selected < prop_list->_num_entries) {
const char *src = prop_list->_entries[selected];
@ -151,6 +152,8 @@ void PropertyList::handle_select(puObject *list_box)
if (!strcmp(src, ".")) {
if (mod_ctrl)
prop_list->toggleFlags();
else if (mod_shift)
writeProperties(cerr, prop_list->_curr, true);
prop_list->update();
return;