mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Don't insert literal tab if accepting tabs, emit keypress event
* This lets the user decide if they want to do something special with tab or just insert the character
This commit is contained in:
@@ -59,7 +59,8 @@ bool RDLineEdit::event(QEvent *e)
|
||||
QKeyEvent *ke = (QKeyEvent *)e;
|
||||
if(ke->key() == Qt::Key_Tab)
|
||||
{
|
||||
insert(lit("\t"));
|
||||
keyPressEvent(ke);
|
||||
e->accept();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user