From 7e070759ad7fca4ba5563ffe564138a26d43c133 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 3 May 2007 19:00:55 +0000 Subject: [PATCH] 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) --- src/GUI/property_list.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GUI/property_list.cxx b/src/GUI/property_list.cxx index c1f7d29b0..de30bc167 100644 --- a/src/GUI/property_list.cxx +++ b/src/GUI/property_list.cxx @@ -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;