From: Dana Jansens Date: Tue, 4 Feb 2003 09:03:48 +0000 (+0000) Subject: force a binding with a modifier X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=106883eedf32ac44afb8ca93c7004a523d493d2f;p=chaz%2Fopenbox force a binding with a modifier --- diff --git a/scripts/stackedcycle.py b/scripts/stackedcycle.py index 791a93a2..4c549d66 100644 --- a/scripts/stackedcycle.py +++ b/scripts/stackedcycle.py @@ -26,10 +26,16 @@ activate_while_cycling = 1 def next(data): """Focus the next window.""" + if not data.state: + raise RuntimeError("stackedcycle.next must be bound to a key" + + "combination with at least one modifier") _o.cycle(data, 1) def previous(data): """Focus the previous window.""" + if not data.state: + raise RuntimeError("stackedcycle.previous must be bound to a key" + + "combination with at least one modifier") _o.cycle(data, 0) ###########################################################################