mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
go to name filtering on backspace
This commit is contained in:
parent
d07dcb2590
commit
6006fcbb71
1 changed files with 8 additions and 2 deletions
|
|
@ -206,11 +206,17 @@ class FiltersPopup(QtWidgets.QWidget):
|
||||||
self.close()
|
self.close()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if event.key() in (
|
||||||
|
QtCore.Qt.Key_Backtab,
|
||||||
|
QtCore.Qt.Key_Backspace,
|
||||||
|
):
|
||||||
|
self.text_filter_requested.emit("")
|
||||||
|
event.accept()
|
||||||
|
return
|
||||||
|
|
||||||
if event.key() not in (
|
if event.key() not in (
|
||||||
QtCore.Qt.Key_Escape,
|
QtCore.Qt.Key_Escape,
|
||||||
QtCore.Qt.Key_Tab,
|
QtCore.Qt.Key_Tab,
|
||||||
QtCore.Qt.Key_Backtab,
|
|
||||||
QtCore.Qt.Key_Backspace,
|
|
||||||
QtCore.Qt.Key_Return,
|
QtCore.Qt.Key_Return,
|
||||||
):
|
):
|
||||||
text = event.text()
|
text = event.text()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue