Fixed bug where DirectoryLayout wasn't properly consuming keys, leading

to the callback firing multiple times.
This commit is contained in:
casey langen 2020-11-01 10:53:28 -08:00
parent d23a6f8489
commit 6520e082c1
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,8 @@
* fixed some weird edge-casey command bar focus issues.
* finally renamed `src/core` to `src/musikcore`
* added a ja_JP locale (trackiss)
* fixed a bug where on-demand mp3 transcoding wasn't working properly. (other
formats were fine)
* rearranged the settings window to ensure everything fits properly in an 80x24
terminal
* fixed some bugs in `MessageQueue` by now requiring explicit `IMessageTarget`

View File

@ -247,6 +247,7 @@ bool DirectoryLayout::KeyPress(const std::string& key) {
this->Requery();
}
return true;
}
else if (Hotkeys::Is(Hotkeys::ContextMenu, key)) {
if (this->GetFocus() == this->directoryList) {
@ -265,6 +266,7 @@ bool DirectoryLayout::KeyPress(const std::string& key) {
index = (index == ListWindow::NO_SELECTION) ? 0 : index;
this->playback.Play(*tracks.get(), index);
}
return true;
}
else if (Hotkeys::Is(Hotkeys::ViewRefresh, key)) {
this->queryHash = 0;