]> git.mxchange.org Git - flightgear.git/commitdiff
property browser: shift click on the "." entry dumps the contents of that
authormfranz <mfranz>
Thu, 3 May 2007 19:00:55 +0000 (19:00 +0000)
committermfranz <mfranz>
Thu, 3 May 2007 19:00:55 +0000 (19:00 +0000)
dir level to the terminal (remember: ctrl-click -> toggle additional info,
and ctrl-click on ".." move to root level)

src/GUI/property_list.cxx

index c1f7d29b0198b1792ec0b7fa8fcdadd0c9b0da25..de30bc1679727fe1db10d0b339ac2c652e173061 100644 (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;