| 1 | //go:build windows |
| 2 | |
| 3 | package edge |
| 4 | |
| 5 | type COREWEBVIEW2_PHYSICAL_KEY_STATUS struct { |
| 6 | RepeatCount uint32 |
| 7 | ScanCode uint32 |
| 8 | IsExtendedKey bool |
| 9 | IsMenuKeyDown bool |
| 10 | WasKeyDown bool |
| 11 | IsKeyReleased bool |
| 12 | } |
| 13 | |
| 14 | // Bools need to be int32 in the native struct otherwise we end up in memory corruption. Using the internal |
| 15 | // struct is a hacky way so we don't break the public interface. |
| 16 | type internal_COREWEBVIEW2_PHYSICAL_KEY_STATUS struct { |
| 17 | RepeatCount uint32 |
| 18 | ScanCode uint32 |
| 19 | IsExtendedKey int32 |
| 20 | IsMenuKeyDown int32 |
| 21 | WasKeyDown int32 |
| 22 | IsKeyReleased int32 |
| 23 | } |
| 24 |