MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / processShortcut

Method processShortcut

source/MRViewer/MRShortcutManager.cpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool ShortcutManager::processShortcut( const ShortcutKey& key, Reason reason ) const
54{
55 if ( !enabled_ )
56 return false;
57 auto it = map_.find( mapKeyFromKeyAndMod( key, true ) );
58 if ( it != map_.end() && ( reason == Reason::KeyDown || it->second.repeatable ) )
59 {
60 it->second.action();
61 return true;
62 }
63 return false;
64}
65
66bool ShortcutManager::onKeyDown_( int key, int modifier )
67{

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
endMethod · 0.45
actionMethod · 0.45

Tested by

no test coverage detected