summaryrefslogtreecommitdiffstats
path: root/ksvg/test/keytest.svg
diff options
context:
space:
mode:
Diffstat (limited to 'ksvg/test/keytest.svg')
-rw-r--r--ksvg/test/keytest.svg25
1 files changed, 25 insertions, 0 deletions
diff --git a/ksvg/test/keytest.svg b/ksvg/test/keytest.svg
new file mode 100644
index 00000000..57c7b639
--- /dev/null
+++ b/ksvg/test/keytest.svg
@@ -0,0 +1,25 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
+ "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
+<svg id="hans" width="600" height="600">
+<script language="javascript">
+<![CDATA[
+
+function keytest(evt)
+{
+ alert(evt.keyVal);
+ alert(evt.virtKeyVal);
+ alert(evt.outputString);
+/*
+ evt.initmodifier(DOM_VK_LEFT_ALT,false);
+ alert(evt.checkmodifier(DOM_VK_LEFT_ALT));
+ evt.initmodifier(DOM_VK_LEFT_ALT,true);
+ alert(evt.checkmodifier(DOM_VK_LEFT_ALT));
+ alert(evt.target);*/
+}
+
+]]>
+</script>
+<rect id="jo" onkeydown="keytest(evt)" x="0" y="0" width="50" height="100" style="fill: red"/>
+<rect onkeyup="keytest(evt)" x="60" y="0" width="50" height="100" style="fill: red"/>
+</svg>