Gui: assign default guesture to Std_SelBack/Forward
This commit is contained in:
@@ -3122,6 +3122,8 @@ StdCmdSelForward::StdCmdSelForward()
|
||||
sPixmap = "sel-forward";
|
||||
sAccel = "S, F";
|
||||
eType = AlterSelection;
|
||||
|
||||
|
||||
}
|
||||
|
||||
void StdCmdSelForward::activated(int iMsg)
|
||||
@@ -3509,6 +3511,13 @@ void CreateViewStdCommands(void)
|
||||
rcCmdMgr.addCommand(new StdCmdSelBack());
|
||||
rcCmdMgr.addCommand(new StdCmdSelForward());
|
||||
rcCmdMgr.addCommand(new StdCmdTreeViewActions());
|
||||
|
||||
|
||||
auto hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
|
||||
if(hGrp->GetASCII("GestureRollFwdCommand").empty())
|
||||
hGrp->SetASCII("GestureRollFwdCommand","Std_SelForward");
|
||||
if(hGrp->GetASCII("GestureRollBackCommand").empty())
|
||||
hGrp->SetASCII("GestureRollBackCommand","Std_SelBack");
|
||||
}
|
||||
|
||||
} // namespace Gui
|
||||
|
||||
Reference in New Issue
Block a user