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:
parent
19e2e7a461
commit
7e070759ad
1 changed files with 3 additions and 0 deletions
|
@ -143,6 +143,7 @@ void PropertyList::handle_select(puObject *list_box)
|
||||||
PropertyList *prop_list = (PropertyList *)list_box->getUserData();
|
PropertyList *prop_list = (PropertyList *)list_box->getUserData();
|
||||||
int selected = list_box->getIntegerValue();
|
int selected = list_box->getIntegerValue();
|
||||||
int mod_ctrl = fgGetKeyModifiers() & KEYMOD_CTRL;
|
int mod_ctrl = fgGetKeyModifiers() & KEYMOD_CTRL;
|
||||||
|
int mod_shift = fgGetKeyModifiers() & KEYMOD_SHIFT;
|
||||||
|
|
||||||
if (selected >= 0 && selected < prop_list->_num_entries) {
|
if (selected >= 0 && selected < prop_list->_num_entries) {
|
||||||
const char *src = prop_list->_entries[selected];
|
const char *src = prop_list->_entries[selected];
|
||||||
|
@ -151,6 +152,8 @@ void PropertyList::handle_select(puObject *list_box)
|
||||||
if (!strcmp(src, ".")) {
|
if (!strcmp(src, ".")) {
|
||||||
if (mod_ctrl)
|
if (mod_ctrl)
|
||||||
prop_list->toggleFlags();
|
prop_list->toggleFlags();
|
||||||
|
else if (mod_shift)
|
||||||
|
writeProperties(cerr, prop_list->_curr, true);
|
||||||
|
|
||||||
prop_list->update();
|
prop_list->update();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue