mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Allow hitting enter on a file in the virtual file dialog to select
This commit is contained in:
@@ -719,6 +719,16 @@ void VirtualFileDialog::on_fileList_clicked(const QModelIndex &index)
|
||||
ui->filename->setText(m_FileProxy->data(index, RemoteFileModel::FileNameRole).toString());
|
||||
}
|
||||
|
||||
void VirtualFileDialog::on_fileList_keyPress(QKeyEvent *e)
|
||||
{
|
||||
// only process when enter is pressed
|
||||
if(e->key() != Qt::Key_Return && e->key() != Qt::Key_Enter)
|
||||
return;
|
||||
|
||||
// pass on to the filename field as if we hit enter there
|
||||
on_filename_keyPress(e);
|
||||
}
|
||||
|
||||
void VirtualFileDialog::on_showHidden_toggled(bool checked)
|
||||
{
|
||||
m_DirProxy->showHidden = ui->showHidden->isChecked();
|
||||
|
||||
Reference in New Issue
Block a user