Some shortcut keys for file browser panel

This commit is contained in:
Ilia Popov
2010-09-14 00:57:50 +02:00
parent c96bbfb378
commit 8e404c95a2
9 changed files with 172 additions and 49 deletions

View File

@@ -501,22 +501,6 @@ bool EditorPanel::handleShortcutKey (GdkEventKey* event) {
case GDK_H:
hidehp->set_active (!hidehp->get_active());
return true;
case GDK_w:
case GDK_W:
tpc->getToolBar()->wb_pressed ();
return true;
case GDK_c:
case GDK_C:
tpc->getToolBar()->crop_pressed ();
return true;
case GDK_s:
case GDK_S:
tpc->getToolBar()->stra_pressed ();
return true;
case GDK_n:
case GDK_N:
tpc->getToolBar()->hand_pressed ();
return true;
case GDK_i:
case GDK_I:
info->set_active (!info->get_active());
@@ -561,6 +545,9 @@ bool EditorPanel::handleShortcutKey (GdkEventKey* event) {
return true;
}
}
if(tpc->getToolBar()->handleShortcutKey(event))
return true;
return false;
}