mirror of
https://github.com/ankitects/anki.git
synced 2026-01-05 18:13:56 -05:00
Remove add_close_shortcut method from Utils
This commit is contained in:
parent
4847eaa2ab
commit
815c8a4d08
1 changed files with 0 additions and 9 deletions
|
|
@ -45,7 +45,6 @@ from aqt.qt import (
|
|||
QFrame,
|
||||
QHeaderView,
|
||||
QIcon,
|
||||
QKeySequence,
|
||||
QLabel,
|
||||
QLineEdit,
|
||||
QListWidget,
|
||||
|
|
@ -61,7 +60,6 @@ from aqt.qt import (
|
|||
QPlainTextEdit,
|
||||
QPoint,
|
||||
QPushButton,
|
||||
QShortcut,
|
||||
QSize,
|
||||
QSplitter,
|
||||
QStandardPaths,
|
||||
|
|
@ -1020,13 +1018,6 @@ def maybeHideClose(bbox: QDialogButtonBox) -> None:
|
|||
bbox.removeButton(b)
|
||||
|
||||
|
||||
def add_close_shortcut(widg: QWidget) -> None:
|
||||
if not is_mac:
|
||||
return
|
||||
shortcut = QShortcut(QKeySequence("Ctrl+W"), widg)
|
||||
qconnect(shortcut.activated, widg.close)
|
||||
|
||||
|
||||
def downArrow() -> str:
|
||||
if is_win:
|
||||
return "▼"
|
||||
|
|
|
|||
Loading…
Reference in a new issue