Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Fjen Undso
nchl
Commits
18ce8c54
Commit
18ce8c54
authored
Jan 22, 2018
by
Fjen Undso
Browse files
gui/focusable: add send_key()
parent
3658a8a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
gui/abstracts/focusable.py
View file @
18ce8c54
from
abc
import
ABC
,
abstractmethod
class
Focusable
(
ABC
):
def
__init__
(
self
):
self
.
focus
=
False
...
...
@@ -7,3 +8,7 @@ class Focusable(ABC):
@
abstractmethod
def
toggle_focus
(
self
):
self
.
focus
=
not
self
.
focus
@
abstractmethod
def
send_key
(
self
,
key
):
pass
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment