AnanthaKN / jquery-in-place-editor

Automatically exported from code.google.com/p/jquery-in-place-editor
Other
0 stars 0 forks source link

Feature Request: Special ASCII Hot Keys for Text Fields #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On a PHP app I wrote, I have some PHP-generated text fields that can have
hot-keys associated with some special characters.

Clicking on the characters concatenates the value in the field with the
special ASCII character.

Examples of the special characters would be degrees, the plus/minus, etc.

Original issue reported on code.google.com by warp...@gmail.com on 12 Oct 2009 at 8:47

GoogleCodeExporter commented 8 years ago
I have this bit of code added for the settings.field_type = "text":

if( settings.hot_keys )
{
    use_field_type += "<br><table><tr><td>Speed Keys</td><td>";
    var hotkeysArray = settings.hot_keys.split(',');
    for( var i=0; i<hotkeysArray.length; i++ )
    {
        var hotkeysValuesArray = hotkeysArray[i].split(':');
        var use_value = hotkeysValuesArray[1] || hotkeysValuesArray[0];
        var thisChar = String.fromCharCode( use_value );
        use_field_type += '<b OnClick="">[' + thisChar + '] ';
    }
    use_field_type += "</td></tr></table>"; 
}

The only piece I'm missing now is the OnClick part.

Any further help on this would be greatly appreciated.  :)

Original comment by warp...@gmail.com on 12 Oct 2009 at 9:59

GoogleCodeExporter commented 8 years ago
Disregard - I think I got this working - a bit more testing and I'll supply the 
patch
along with the other one for the array selections.

Original comment by warp...@gmail.com on 13 Oct 2009 at 5:49

GoogleCodeExporter commented 8 years ago
I'll look at the patch in the other report, until then, closing this issue.

Original comment by mhaec...@gmail.com on 23 Mar 2010 at 10:15