Skip to content

Commit

Permalink
Add shortcut "C" to the Publish Point tool (#1321)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaikiMaekawa authored and rhaschke committed Mar 29, 2019
1 parent 0aba661 commit d134bc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions help/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ <h3>Switching between tools</h3>
<td class="key">P</td>
<td>Switch to the 2D Pose Estimate tool.</td>
</tr>
<tr class="even">
<td class="key">C</td>
<td>Switch to the Publish Point tool.</td>
</tr>
</table>
</p>

Expand Down
2 changes: 2 additions & 0 deletions src/rviz/default_plugin/tools/point_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ namespace rviz
PointTool::PointTool()
: Tool()
{
shortcut_key_ = 'c';

topic_property_ = new StringProperty( "Topic", "/clicked_point",
"The topic on which to publish points.",
getPropertyContainer(), SLOT( updateTopic() ), this );
Expand Down

0 comments on commit d134bc5

Please sign in to comment.