Grease Pencil, drawing straight lines v 2.78
To draw straight lines select Draw>Line on the grease pencil section.



Otherwise press CtrlD and place the cursor on the starting point of the straight line, then release the Ctrl key while still holding the D key, and position the end point of the line and release the D key.