winit/src/platform_impl/apple/appkit
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
..
app.rs Swizzle sendEvent: instead of subclassing NSApplication (#4036) 2025-02-24 10:38:10 +01:00
app_state.rs macOS: Close windows automatically when exiting (#4154) 2025-03-17 11:29:53 +01:00
cursor.rs cursor: refactor CustomCursor to be dyn 2025-03-13 17:18:37 +03:00
event.rs Align NamedKey and KeyCode more closely with the W3C specs (#4018) 2025-03-23 12:56:01 +01:00
event_loop.rs macOS: Close windows automatically when exiting (#4154) 2025-03-17 11:29:53 +01:00
ffi.rs Update to objc2 v0.6 (#4092) 2025-01-28 21:31:14 +01:00
menu.rs Update to objc2 v0.6 (#4092) 2025-01-28 21:31:14 +01:00
mod.rs cursor: refactor CustomCursor to be dyn 2025-03-13 17:18:37 +03:00
monitor.rs monitor: refactor MonitorHandle to store dyn object 2025-03-07 19:22:12 +03:00
observer.rs Update to objc2 v0.6 (#4092) 2025-01-28 21:31:14 +01:00
util.rs Update to objc2 v0.6 (#4092) 2025-01-28 21:31:14 +01:00
view.rs Align NamedKey and KeyCode more closely with the W3C specs (#4018) 2025-03-23 12:56:01 +01:00
window.rs monitor: refactor MonitorHandle to store dyn object 2025-03-07 19:22:12 +03:00
window_delegate.rs macOS: Make set_simple_fullscreen honor set_borderless_game (#4164) 2025-03-17 02:58:47 +01:00