aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/document/keypress_event/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/document/keypress_event/index.html')
-rw-r--r--files/zh-cn/web/api/document/keypress_event/index.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/files/zh-cn/web/api/document/keypress_event/index.html b/files/zh-cn/web/api/document/keypress_event/index.html
index 297a595b2b..a9c2bf2bf3 100644
--- a/files/zh-cn/web/api/document/keypress_event/index.html
+++ b/files/zh-cn/web/api/document/keypress_event/index.html
@@ -78,7 +78,7 @@ translation_of: Web/API/Document/keypress_event
<tr>
<td><code>key</code> {{readonlyInline}}</td>
<td>DOMString (string)</td>
- <td>The key value of the key represented by the event. If the value has a printed representation, this attribute's value is the same as the <code>char</code> attribute. Otherwise, it's one of the key value strings specified in {{ anch("Key values") }}. If the key can't be identified, this is the string "Unidentified". See <a href="/en-US/docs/Web/API/KeyboardEvent#Key_names_and_Char_values">key names and char values</a> for the detail. Read Only.</td>
+ <td>The key value of the key represented by the event. If the value has a printed representation, this attribute's value is the same as the <code>char</code> attribute. Otherwise, it's one of the key value strings specified in <a href="#key_values">Key Values</a>. If the key can't be identified, this is the string "Unidentified". See <a href="/en-US/docs/Web/API/KeyboardEvent#Key_names_and_Char_values">key names and char values</a> for the detail. Read Only.</td>
</tr>
<tr>
<td><code>charCode</code> {{readonlyInline}}</td>
@@ -90,7 +90,7 @@ translation_of: Web/API/Document/keypress_event
<tr>
<td><code>keyCode</code> {{readonlyInline}}</td>
<td>Unsigned long (int)</td>
- <td>A system and implementation dependent numerical code identifying the unmodified value of the pressed key. This is usually the decimal ASCII ({{ RFC(20) }}) or Windows 1252 code corresponding to the key; see {{ anch("Virtual key codes") }} for a list of common values. If the key can't be identified, this value is 0.
+ <td>A system and implementation dependent numerical code identifying the unmodified value of the pressed key. This is usually the decimal ASCII ({{ RFC(20) }}) or Windows 1252 code corresponding to the key; see <a href="virtual_key_codes">Virtual key codes</a> for a list of common values. If the key can't be identified, this value is 0.
<div class="warning"><strong>Warning:</strong> This attribute is deprecated; you should use <code>key</code> instead, if available.</div>
</td>
</tr>
@@ -137,7 +137,6 @@ translation_of: Web/API/Document/keypress_event
<td><code>true</code> if the meta key was down when the event was fired. <code>false</code> otherwise.</td>
</tr>
</tbody>
-</table>
<h2 id="Related_Events">Related Events</h2>