summaryrefslogtreecommitdiffstats
path: root/ksvg/test/keytest.svg
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit47d455dd55be855e4cc691c32f687f723d9247ee (patch)
tree52e236aaa2576bdb3840ebede26619692fed6d7d /ksvg/test/keytest.svg
downloadtdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz
tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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>