Display all platform-specific documentation on docs.rs (#3076)
This commit is contained in:
parent
8b3de7cedf
commit
42dbc4748e
28 changed files with 810 additions and 814 deletions
|
|
@ -53,8 +53,7 @@ use windows_sys::Win32::{
|
|||
|
||||
use crate::{
|
||||
keyboard::{Key, KeyCode, ModifiersState, NamedKey, NativeKey, PhysicalKey},
|
||||
platform::scancode::PhysicalKeyExtScancode,
|
||||
platform_impl::{loword, primarylangid},
|
||||
platform_impl::{loword, primarylangid, scancode_to_physicalkey},
|
||||
};
|
||||
|
||||
pub(crate) static LAYOUT_CACHE: Lazy<Mutex<LayoutCache>> =
|
||||
|
|
@ -336,7 +335,7 @@ impl LayoutCache {
|
|||
if scancode == 0 {
|
||||
continue;
|
||||
}
|
||||
let keycode = match PhysicalKey::from_scancode(scancode) {
|
||||
let keycode = match scancode_to_physicalkey(scancode) {
|
||||
PhysicalKey::Code(code) => code,
|
||||
// TODO: validate that we can skip on unidentified keys (probably never occurs?)
|
||||
_ => continue,
|
||||
|
|
@ -388,7 +387,7 @@ impl LayoutCache {
|
|||
}
|
||||
|
||||
let native_code = NativeKey::Windows(vk as VIRTUAL_KEY);
|
||||
let key_code = match PhysicalKey::from_scancode(scancode) {
|
||||
let key_code = match scancode_to_physicalkey(scancode) {
|
||||
PhysicalKey::Code(code) => code,
|
||||
// TODO: validate that we can skip on unidentified keys (probably never occurs?)
|
||||
_ => continue,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue