Filter out previous/next drawcall shortcuts when text editing.

Closes #911

editing.
path.
'ad0678a'.
This commit is contained in:
Baldur Karlsson
2018-03-12 15:46:44 +00:00
parent 1a268ace8b
commit 68a3f3a31f
5 changed files with 53 additions and 12 deletions
+5 -2
View File
@@ -98,13 +98,16 @@ DECLARE_REFLECTION_STRUCT(CaptureSettings);
DOCUMENT(R"(The main parent window of the application.
.. function:: ShortcutCallback()
.. function:: ShortcutCallback(QWidget focusWidget)
Not a member function - the signature for any ``ShortcutCallback`` callbacks.
:param QWidget focusWidget: The widget with focus at the time this shortcut was detected. May be
``None``.
)");
struct IMainWindow
{
typedef std::function<void()> ShortcutCallback;
typedef std::function<void(QWidget *focusWidget)> ShortcutCallback;
DOCUMENT(
"Retrieves the QWidget for this :class:`MainWindow` if PySide2 is available, or otherwise a "