The Pittsburgh synagogue shooting on Saturday and the arrest a day earlier in the case of pipe bombs sent to prominent Democrats are forcing Republicans and Democrats to adapt on the fly in the final full week of campaigning before midterm elections.

A group of Pennsylvania Democrats, including Gov. Tom Wolf, Sen. Bob Casey and Rep. Mike Doyle, canceled a political bus tour that was scheduled to come through Pittsburgh and Carlisle, Pa., on Sunday.

Mr....