diff options
author | 2019-08-24 12:19:42 +0200 | |
---|---|---|
committer | 2019-08-24 12:19:57 +0200 | |
commit | 6a857daed7cc1587c9ae63dd5cb426cc2f2bbebc (patch) | |
tree | cd9bb68a7bbcb023bd95ffa760521996dafc05d4 /scripts/build/complay.py | |
parent | f5b2fd9ee6ef6ced1eec7859494e82c375d9c8d2 (diff) |
complay: allow inputmask=0 when inputraw=1 for canceling input listener section (nw)
Diffstat (limited to 'scripts/build/complay.py')
-rw-r--r-- | scripts/build/complay.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build/complay.py b/scripts/build/complay.py index 3f2a0d8b6b5..72bdcfa01c8 100644 --- a/scripts/build/complay.py +++ b/scripts/build/complay.py @@ -460,9 +460,6 @@ class LayoutChecker(Minifyer): self.checkTag(attrs['inputtag'], name, 'inputtag') elif 'inputmask' in attrs: self.handleError('Element %s has inputmask attribute without inputtag attribute' % (name, )) - inputmask = self.checkIntAttribute(name, attrs, 'inputmask', None) - if (inputmask is not None) and (0 == inputmask): - self.handleError('Element %s has attribute inputmask "%s" is zero' % (name, attrs['inputmask'])) inputraw = self.checkIntAttribute(name, attrs, 'inputraw', None) if (inputraw is not None): if 'inputmask' not in attrs: @@ -471,6 +468,10 @@ class LayoutChecker(Minifyer): self.handleError('Element %s has inputraw attribute without inputtag attribute' % (name, )) if ((0 > inputraw) or (1 < inputraw)): self.handleError('Element %s attribute inputraw "%s" not in valid range 0-1' % (name, attrs['inputraw'])) + inputmask = self.checkIntAttribute(name, attrs, 'inputmask', None) + if (inputmask is not None) and (0 == inputmask): + if (inputraw is None) or (0 == inputraw): + self.handleError('Element %s has attribute inputmask "%s" is zero' % (name, attrs['inputmask'])) self.handlers.append((self.objectStartHandler, self.objectEndHandler)) self.have_bounds.append(False) self.have_orientation.append(False) |