Skip to content

Commit

Permalink
Merge pull request #13 from rvanlaar/patch-1
Browse files Browse the repository at this point in the history
Configure shortcut key for rebuild
  • Loading branch information
tito authored Jan 12, 2025
2 parents cf2eea2 + 78c90d6 commit 1c9a20b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kaki/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ class App(BaseApp):
#: when not in DEBUG, put this to False
RAISE_ERROR = True

#: Shortcut key to rebuild application
#: Default key F5
SHORTCUT_REBUILD = 286

__events__ = ["on_idle", "on_wakeup"]

def build(self):
Expand All @@ -88,7 +92,7 @@ def build(self):
Logger.info("Kaki: Debug mode activated")
self.enable_autoreload()
self.patch_builder()
self.bind_key(286, self.rebuild)
self.bind_key(self.SHORTCUT_REBUILD, self.rebuild)
if self.FOREGROUND_LOCK:
self.prepare_foreground_lock()

Expand Down

0 comments on commit 1c9a20b

Please sign in to comment.