blob: 57c7b63947dc5ba671a12c2beb08bbca665bbd04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>
|