Ticket #26: patch
File patch, 1.6 KB (added by , 19 years ago) |
---|
-
mythvideo/videotree.cpp
79 79 handled = true; 80 80 81 81 if (action == "SELECT") 82 video_tree_list->select(); 82 { 83 if (curitem) 84 video_tree_list->select(); 85 else 86 video_tree_list->pushDown(); 87 } 83 88 else if (action == "UP") 84 89 video_tree_list->moveUp(); 85 90 else if (action == "DOWN") … … 96 101 doMenu(true); 97 102 else if (action == "MENU") 98 103 doMenu(false); 104 else if (action == "ESCAPE") 105 { 106 unsigned int distanceFromRoot=0; 107 for (GenericTree* it = video_tree_list->getCurrentNode() ; it ; distanceFromRoot++) 108 it = it->getParent(); 99 109 110 if (distanceFromRoot - video_tree_list->getActiveBin() >= 2) 111 video_tree_list->popUp(); 112 else 113 handled = false; 114 } 115 100 116 else if (action == "1" || action == "2" || action == "3" || 101 117 action == "4") 102 118 { … … 106 122 handled = false; 107 123 } 108 124 109 125 if (!handled) 110 126 { 111 127 112 128 gContext->GetMainWindow()->TranslateKeyPress("TV Frontend", e, actions); … … 316 332 // (no video file here, just a directory) 317 333 // 318 334 335 curitem = NULL; 336 319 337 video_title->SetText(""); 320 338 video_file->SetText(""); 321 339 video_player->SetText("");