Call Focus and Blur only for devtools

Fix #1387