@@ -27,6 +27,7 @@ import RegionSelector from "../RegionSelectorSidebarBox"
2727import ImageSelector from "../ImageSelectorSidebarBox"
2828import HistorySidebarBox from "../HistorySidebarBox"
2929import useEventCallback from "use-event-callback"
30+ import getHotkeyHelpText from "../utils/get-hotkey-help-text"
3031
3132const emptyArr = [ ]
3233const useStyles = makeStyles ( styles )
@@ -260,17 +261,20 @@ export const MainLayout = ({
260261 iconSidebarItems = { [
261262 {
262263 name : "select" ,
263- helperText : "Select" ,
264+ helperText : "Select" + getHotkeyHelpText ( "select_tool" ) ,
264265 alwaysShowing : true ,
265266 } ,
266267 {
267268 name : "pan" ,
268- helperText : "Drag/Pan" ,
269+ helperText :
270+ "Drag/Pan (right or middle click)" +
271+ getHotkeyHelpText ( "pan_tool" ) ,
269272 alwaysShowing : true ,
270273 } ,
271274 {
272275 name : "zoom" ,
273- helperText : "Zoom In/Out" ,
276+ helperText :
277+ "Zoom In/Out (scroll)" + getHotkeyHelpText ( "zoom_tool" ) ,
274278 alwaysShowing : true ,
275279 } ,
276280 {
@@ -280,15 +284,16 @@ export const MainLayout = ({
280284 } ,
281285 {
282286 name : "create-point" ,
283- helperText : "Add Point" ,
287+ helperText : "Add Point" + getHotkeyHelpText ( "create_point" ) ,
284288 } ,
285289 {
286290 name : "create-box" ,
287- helperText : "Add Bounding Box" ,
291+ helperText :
292+ "Add Bounding Box" + getHotkeyHelpText ( "create_bounding_box" ) ,
288293 } ,
289294 {
290295 name : "create-polygon" ,
291- helperText : "Add Polygon" ,
296+ helperText : "Add Polygon" + getHotkeyHelpText ( "create_polygon" ) ,
292297 } ,
293298 {
294299 name : "create-expanding-line" ,
0 commit comments