Snap to grid and shift key for Horizontal/Vertical lines doesn't seem to work

The many snap and grid settings can interact in unexpected ways: