Skip to content

Commit

Permalink
Merge branch 'ign-gui6' into azulradio/search_bar_highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
jennuine authored May 26, 2022
2 parents aaa49a5 + 5d5755c commit df93a84
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/ignition/gui/qml/PluginMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ Popup {
onTextEdited: {
filteredModel.update();
}
Keys.onReturnPressed: {
MainWindow.OnAddPlugin(
pluginMenuListView.currentItem.pluginModel.modelData);
drawer.close();
pluginMenu.close();
}
Keys.onDownPressed: {
pluginMenuListView.incrementCurrentIndex();
}
Keys.onUpPressed: {
pluginMenuListView.decrementCurrentIndex();
}
}
}
}
Expand Down Expand Up @@ -108,6 +120,7 @@ Popup {
model: MainWindow.PluginListModel()

delegate: ItemDelegate {
property variant pluginModel: model
width: parent.width
text: modelData
highlighted: ListView.isCurrentItem
Expand Down

0 comments on commit df93a84

Please sign in to comment.