Skip to content

Commit 417aaf8

Browse files
PotatoCPmadsmtm
authored andcommitted
Fix NumpadEqual and Pause code and location
Signed-off-by: PotatoCP <Kenzie.Raditya.Tirtarahardja@huawei.com>
1 parent df9265a commit 417aaf8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/webdriver.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ fn code(raw_key: char) -> Code {
188188
'\u{E009}' => Code::ControlLeft,
189189
'\u{E051}' => Code::ControlRight,
190190
'\u{E006}' => Code::Enter,
191+
'\u{E00B}' => Code::Pause,
191192
// FIXME: spec says "OSLeft"
192193
'\u{E03D}' => Code::MetaLeft,
193194
// FIXME: spec says "OSRight"
@@ -222,6 +223,7 @@ fn code(raw_key: char) -> Code {
222223
'\u{E03A}' => Code::F10,
223224
'\u{E03B}' => Code::F11,
224225
'\u{E03C}' => Code::F12,
226+
'\u{E019}' => Code::NumpadEqual,
225227
'\u{E01A}' | '\u{E05C}' => Code::Numpad0,
226228
'\u{E01B}' | '\u{E056}' => Code::Numpad1,
227229
'\u{E01C}' | '\u{E05B}' => Code::Numpad2,
@@ -290,6 +292,7 @@ fn key_location(raw_key: char) -> Location {
290292
'\u{E03D}' => Location::Left,
291293
'\u{E050}'..='\u{E053}' => Location::Right,
292294
'\u{E054}'..='\u{E05D}' => Location::Numpad,
295+
'\u{E019}' => Location::Numpad,
293296
_ => Location::Standard,
294297
}
295298
}

0 commit comments

Comments
 (0)