mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Update spec links for keyboardevent
This commit is contained in:
parent
f3162cd316
commit
2f982e668c
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ impl KeyboardEvent {
|
|||
}
|
||||
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3Events-key.html
|
||||
// https://w3c.github.io/uievents-key/#key-value-tables
|
||||
pub fn key_value(key: Key, mods: KeyModifiers) -> &'static str {
|
||||
let shift = mods.contains(constellation_msg::SHIFT);
|
||||
match key {
|
||||
|
@ -497,7 +497,7 @@ fn key_from_string(key_string: &str, location: u32) -> Option<Key> {
|
|||
}
|
||||
}
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3Events-code.html
|
||||
// https://w3c.github.io/uievents-code/#code-value-tables
|
||||
fn code_value(key: Key) -> &'static str {
|
||||
match key {
|
||||
Key::Space => "Space",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue