Salome HOME
PyEditor: implement Find/Replace feature
[modules/gui.git] / tools / PyEditor / src / PyEditor_Window.cxx
index 125a27b818a4e8f119166ea39adeabdc8fe4bde6..cfeebe2bdc60a7efdc203a49bde4034461851fbc 100644 (file)
@@ -197,7 +197,7 @@ PyEditor_Window::PyEditor_Window( QWidget* parent ) :
                         tr( "ACT_REPLACE" ), this );
   action->setToolTip( tr( "TTP_REPLACE" ) );
   action->setStatusTip( tr( "DSC_REPLACE" ) );
-  action->setShortcut( QKeySequence::Replace );
+  action->setShortcuts( QList<QKeySequence>() << QKeySequence( "Ctrl+H" ) << QKeySequence( QKeySequence::Replace ) );
   action->setShortcutContext( Qt::WidgetShortcut );
   connect( action, SIGNAL( triggered( bool ) ), myEditor, SLOT( replace() ) );
   myActions[ ReplaceId ] = action;