winit/examples
Mads Marquart cdbdd974fb
Align NamedKey and KeyCode more closely with the W3C specs (#4018)
By removing `NamedKey::Space` and rename "super" key to "meta".

- `NamedKey::Space` is not in the spec, and doesn't make sense to
  special-case. We use `Key::Character("")` instead..

  I've added an extra check on the Windows backend, to ensure that the code
  functionally works the same before and after. Whether that check is
  desirable or not can be figured out later.

- "super" is inconsistent with the W3C spec, and while it's arguably not the
  best name, it's worse that Winit is diverging and choosing a different name.

  List of renamings:
  - `KeyCode::SuperLeft` -> `KeyCode::MetaLeft`
  - `KeyCode::SuperRight` -> `KeyCode::MetaRight`
  - `KeyCode::Meta` -> `KeyCode::Super`
  - `NamedKey::Meta` -> `NamedKey::Super`
  - `NamedKey::Super` -> `NamedKey::Meta`
  - `ModifiersState::SUPER` -> `ModifiersState::META` (deprecated)
  - `ModifiersState::super_key` -> `ModifiersState::meta_key`
  - `ModifiersKeys::LSUPER` -> `ModifiersKeys::LMETA`
  - `ModifiersKeys::RSUPER` -> `ModifiersKeys::RMETA`
2025-03-23 12:56:01 +01:00
..
data Deprecate window creation with stale event loop 2024-02-21 14:44:29 +04:00
util Fix a pause in the event loop when clicking the title bar on windows (#4136) 2025-03-17 02:27:27 +01:00
application.rs Align NamedKey and KeyCode more closely with the W3C specs (#4018) 2025-03-23 12:56:01 +01:00
child_window.rs Properly implement Debug for Window and EventLoop types (#3297) 2025-03-03 08:40:04 +01:00
control_flow.rs Properly implement Debug for Window and EventLoop types (#3297) 2025-03-03 08:40:04 +01:00
dnd.rs Properly implement Debug for Window and EventLoop types (#3297) 2025-03-03 08:40:04 +01:00
pump_events.rs Properly implement Debug for Window and EventLoop types (#3297) 2025-03-03 08:40:04 +01:00
run_on_demand.rs Properly implement Debug for Window and EventLoop types (#3297) 2025-03-03 08:40:04 +01:00
window.rs Drop application handler on run loop exit (#4149) 2025-03-17 10:56:00 +01:00
x11_embed.rs Properly implement Debug for Window and EventLoop types (#3297) 2025-03-03 08:40:04 +01:00