最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

shiftKey Property

Internet Development Index

Retrieves the state of the SHIFT key.

Syntax

[ bKey = ] event.shiftKey

Possible Values

bKeyBoolean that receives one of the following values.
falseSHIFT key is not pressed.
trueSHIFT key is pressed.

The property is read-only. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Example

This example demonstrates how to retrieve the state of the SHIFT key. Any key pressed fires the onkeydown event handler, enabling you to retrieve the state of the SHIFT key. Because the onkeyup event handler only fires when a key is released, it always returns false for the SHIFT key's state. The onkeypress event handler only fires when the user presses an alphanumeric key—it will not fire if the SHIFT key is pressed.

<HTML>
.
.
.
<BODY onkeydown="okd.innerText=event.shiftKey;"
onkeypress="okp.innerText=event.shiftKey;"
onkeyup="oku.innerText=event.shiftKey;">
State of SHIFT key from the onkeydown event handler:
<SPAN id="okd" class="b"></SPAN><BR>
State of SHIFT key from the onkeyup event handler:
<SPAN id="oku" class="b"></SPAN><BR>
State of SHIFT key from the onkeypress event handler:
<SPAN id="okp" class="b"></SPAN>
.
.
.
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this property.

Applies To

event

See Also

shiftLeft
新巴尔虎右旗| 沈丘县| 浪卡子县| 南漳县| 阿拉善左旗| 蚌埠市| 金昌市| 炉霍县| 天镇县| 邳州市| 太和县| 永嘉县| 文昌市| 云龙县| 兴国县| 霍州市| 昭觉县| 潜山县| 大城县| 敦煌市| 色达县| 丹阳市| 徐闻县| 绥化市| 桓仁| 酉阳| 新巴尔虎左旗| 苏州市| 沐川县| 南靖县| 吉木乃县| 蒙自县| 沾益县| 剑河县| 河间市| 望城县| 平邑县| 旺苍县| 绥阳县| 绥棱县| 平泉县|