MCPcopy Create free account
hub / github.com/desktop-app/lib_ui / IsPasteWithShift

Function IsPasteWithShift

ui/widgets/fields/input_field.cpp:272–313  ·  view source on GitHub ↗

Detects Ctrl+Shift+V (or any "Paste shortcut with extra Shift") in a way that survives non-Latin keyboard layouts. QKeyEvent::matches() only looks at the layout-translated key(), so on Russian etc. the V key reports as Cyrillic М and stripping Shift is not enough. QKeyMapper::possibleKeys() returns the Latin fallback as one of the alternatives, which is exactly what QShortcutMap uses for plain Ctr

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

keyPressEventInnerMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected