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

@@ -193,3 +193,27 @@ void FilePanel::optionsChanged () {
tpc->optionsChanged ();
fileCatalog->refreshAll ();
}
bool FilePanel::handleShortcutKey (GdkEventKey* event) {
bool ctrl = event->state & GDK_CONTROL_MASK;
bool shift = event->state & GDK_SHIFT_MASK;
if (!ctrl) {
switch(event->keyval) {
}
}
else {
switch (event->keyval) {
}
}
if(tpc->getToolBar()->handleShortcutKey(event))
return true;
if(fileCatalog->handleShortcutKey(event))
return true;
return false;
}