Ignore:
Timestamp:
09/07/05 06:49:33 (14 years ago)
Author:
gocher
Message:

Make ESC work and make the Equation plugin skinable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/CharacterMap/popups/select_character.html

    r281 r310  
    3131window.moveTo(x, y); 
    3232 
    33 function _CloseOnEsc() 
    34 { 
    35     if ( event.keyCode == 27 ) 
    36     { 
    37         window.close(); 
    38         return; 
    39     } 
    40 } 
    41  
    4233function Init()                                                         // run on page load 
    4334{ 
    4435   __dlg_translate('CharacterMap'); 
    4536   __dlg_init(); 
    46     document.body.onkeypress = _CloseOnEsc; 
    4737 
    4838    var character = '';                                                   // set default input to empty 
    4939    View( null, character ); 
     40    document.getElementById("cancel").focus(); 
    5041} 
    5142 
     
    7667</script> 
    7768</head> 
    78 <body class="dialog" onload="Init();self.focus();"> 
     69<body class="dialog" onload="Init();"> 
    7970<table border="0" cellspacing="1" cellpadding="0" width="100%" style="cursor: pointer; background: #ADAD9C; border: 1px inset;"> 
    8071<tr> 
     
    215206<td class="character">&nbsp;</td> 
    216207</table><br /> 
    217 <form style="text-align: center;"><button type="button" name="cancel" onclick="return onCancel();" class="submitInsertTable">Cancel</button></form> 
     208<form style="text-align: center;"><button type="button" id="cancel" name="cancel" onclick="return onCancel();" class="submitInsertTable">Cancel</button></form> 
    218209</body> 
    219210</html> 
Note: See TracChangeset for help on using the changeset viewer.