title: calling prompt() in electron (from external API) does not work
body: <p>I am using the <a href="https://github.com/ajaxorg/ace" rel="nofollow">ace</a> editor inside of electron. When pressing <code>ctrl+l</code> inside the editor <code>prompt()</code> is invoked by ace. But Electron does not support <code>prompt()</code> so that functionality does not work.</p>
  
  <blockquote>
    <p><strong><a href="https://github.com/atom/electron/issues/472#issuecomment-60515607" rel="nofollow">zcbenz commented on Oct 26, 2014:</a></strong></p>
    
    <p>There is no native prompt dialogs in most GUI toolkits, so
    implementing prompt in atom-shell would require writing the prompt
    dialog from ground up on all platforms. Due to the rare use of prompt,
    I think it doesn't deserve to do all the work, and it is very easy to
    use a web implemented solution for this.</p>
    
    <p>So I'm closing this as won't fix.</p>
  </blockquote>
  
  <p>I have fixed this problem (for) now by extending ace, but if yet another external module calls <code>prompt()</code> I will have to do something like this again. The code below binds to <code>ctrl+l</code> and then replace <code>prompt()</code> by <a href="http://github.hubspot.com/vex/docs/welcome/" rel="nofollow">vex</a>(yet another dependency) and then call <code>gotoLine()</code>:</p>
  
  <pre><code>editor.commands.addCommand({
      name: "replace",
      bindKey: {
          win: "Ctrl-l",
          mac: "Command-l"
      },
      exec: function(editor) {
          vex.dialog.open({ // ********** prompt() **********
              message: 'Enter your line number:',
              buttons: [
                  $.extend({}, vex.dialog.buttons.YES, {
                      text: 'goto line'
                  })
              ],
              input: "&lt;input name=\"line\" type=\"text\" placeholder=\"line\" required /&gt;\n",
              callback: function(data) {
                  if (data) {
                      editor.gotoLine(data.line)
                      editor.focus()
                  }
              }
          })
      }
  })
  </code></pre>
  
  <p>Ideally I would just instantiate another module(add just one line) which implements the prompt as a synchronous function that works inside electron. I am wondering if there is already a module for this?</p>