#12 Visual Indicator of Focus on Preview

open
nobody
5
2012-02-07
2012-02-07
DC
No

Gui needs a visual indicator of focus being on the prompter (frmMain.xul line 644, this doesn't work)

Discussion

  • DC

    DC - 2012-02-07

    frmMain.xul line 644
    <browser id="ctlScriptPreview" type="content-primary" flex="1"
    style="border:3px solid #306EFF;"
    onload="alert(this); document.getElementById('ctlScriptPreview').style.borderColor='red';"
    oncommand="alert(this); document.getElementById('ctlScriptPreview').style.borderColor='red';"
    onblur="this.style.borderColor='red';"/>

    Sadly, this does not work.

     
    • DC

      DC - 2013-10-28

      teleprompter.js line ~47 adding:
      document.onblur=function(e){
      document.body.style.border = "0px";
      }

      document.onfocus=function(e){
      document.body.style.border = "3px solid blue";
      }

      Is close, but causes preview & window to have different sizes.

       
  • DC

    DC - 2012-02-07
    • assigned_to: lightscape --> nobody
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks