Function restore_clipboard_keys

Source
fn restore_clipboard_keys(ctx: &Context)
Expand description

egui-winit swallows the clipboard keys: Ctrl+C / Ctrl+X / Ctrl+V (and Ctrl+Alt+C/V, Shift+Delete, Ctrl+Insert) arrive as Event::Copy / Cut / Paste with the key event dropped, so no shortcut on those keys can ever match. Put the key events back. The clipboard event no longer says which key produced it, so the modifiers decide — with Shift down a Cut is Windows’ Shift+Delete (Ctrl+Shift+X is nobody’s shortcut). Callers skip this while a text field has focus, so text copy/paste is untouched.