   handleDetailsFormClose: ->
     # TODO: Check if the details tasks are complete.
     @props.tool.props.onDeselect?()
+  
+  focusDrawingTool: ->
+    x = window.scrollX
+    y = window.scrollY
+    @root?.focus()
+    window.scrollTo(x, y)

  getInitialState: ->
    destroying: false
  
  componentDidMount: ->
    @root?.focus()

  render: ->
    toolProps = @props.tool.props


    unless toolProps.disabled
      startHandler = (e) =>
        @focusDrawingTool()
        toolProps.onSelect(e)

    <g className="drawing-tool" {...rootProps} {...@props}>
