1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-22 08:38:26 +02:00

gui_canvas.c (key_press_event): make / rotate through packages as well

This commit is contained in:
Werner Almesberger 2015-01-10 05:00:02 -03:00
parent 15e5811aea
commit 5fdea0e99a
3 changed files with 3 additions and 2 deletions

2
README
View File

@ -564,7 +564,7 @@ Space reset user coordinates
* zoom and center to extents * zoom and center to extents
# zoom and center to currently active frame instance # zoom and center to currently active frame instance
U undelete the previously deleted object U undelete the previously deleted object
/ Switch between variable and item display. / Switch between variables, code, and packages display.
Canvas Canvas

View File

@ -451,7 +451,7 @@ static gboolean key_press_event(GtkWidget *widget, GdkEventKey *event,
change_world(); change_world();
break; break;
case '/': case '/':
sidebar = sidebar == sidebar_var ? sidebar_code : sidebar_var; sidebar = sidebar == sidebar_last ? 0 : sidebar + 1;
change_world(); change_world();
break; break;
} }

View File

@ -23,6 +23,7 @@ enum sidebar {
sidebar_var, /* show variables */ sidebar_var, /* show variables */
sidebar_code, /* show code */ sidebar_code, /* show code */
sidebar_pkg, /* show packages */ sidebar_pkg, /* show packages */
sidebar_last = sidebar_pkg
}; };