summaryrefslogtreecommitdiff
path: root/regexvis.html
diff options
context:
space:
mode:
Diffstat (limited to 'regexvis.html')
-rw-r--r--regexvis.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexvis.html b/regexvis.html
index a881d82..a99b991 100644
--- a/regexvis.html
+++ b/regexvis.html
@@ -55,7 +55,7 @@
<tr>
<td style='text-align:right'><strong>Regular Expression:</strong></td>
<td><input type="text" name="regex" id="regex" value=""
- onchange='checkLength(this, "#parseButton")'
+ onchange='checkLength(this, "#parseButton")' onkeypress="return getKey(event, ALPHABETS)"
onmouseout='checkLength(this, "#parseButton")' autocomplete="off" />
<input type="button" name="parseButton" id="parseButton"
value="Parse" disabled='disabled' autocomplete="off" onclick="uiParse()" />
@@ -64,7 +64,7 @@
<tr>
<td style='text-align:right'><strong>Word:</strong></td>
<td><input type="text" name="word" id="word" value="" disabled='disabled'
- onchange='checkLength(this, "#checkButton")'
+ onchange='checkLength(this, "#checkButton")' onkeypress="return getKey(event, ALPHABET)"
onmouseout='checkLength(this, "#checkButton")' autocomplete="off" />
<input type="button" name="checkButton" id="checkButton"
value="Check" disabled='disabled' autocomplete="off" onclick="uiSimulate()" />