MCPcopy Create free account
hub / github.com/SpartanJ/eepp / reloadKeybindings

Method reloadKeybindings

src/tools/ecode/ecode.cpp:1591–1612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1589}
1590
1591void App::reloadKeybindings() {
1592 mKeybindings.clear();
1593 mKeybindingsInvert.clear();
1594 mRealLocalKeybindings.clear();
1595 mRealSplitterKeybindings.clear();
1596 mRealTerminalKeybindings.clear();
1597 mRealDefaultKeybindings.clear();
1598 mMousebindings.clear();
1599 mMousebindingsInvert.clear();
1600 loadKeybindings();
1601 mSplitter->forEachEditor( [this]( UICodeEditor* ed ) {
1602 ed->getKeyBindings().reset();
1603 ed->getKeyBindings().addKeybindsStringUnordered( mKeybindings );
1604 ed->getMouseBindings().reset();
1605 ed->getMouseBindings().addMousebindsString( mMousebindings );
1606 } );
1607 mSplitter->forEachWidgetType( UI_TYPE_TERMINAL, [this]( UIWidget* widget ) {
1608 mTerminalManager->setKeybindings( widget->asType<UITerminal>() );
1609 } );
1610 mMainLayout->getKeyBindings().reset();
1611 mMainLayout->getKeyBindings().addKeybinds( getRealDefaultKeybindings() );
1612}
1613
1614void App::onDocumentStateChanged( UICodeEditor*, TextDocument& ) {
1615 updateEditorState();

Callers

nothing calls this directly

Calls 8

forEachEditorMethod · 0.80
addMousebindsStringMethod · 0.80
forEachWidgetTypeMethod · 0.80
setKeybindingsMethod · 0.80
addKeybindsMethod · 0.80
clearMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected