Update source/class/dialog/Prompt.js

Make prompt react on enter