kimoa / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
3 stars 0 forks source link

problem of unicode type's text #949

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
hi. my name is hoyoung jo

return key code value 225 occurs when call key up event.

so..

add follows code in svg-editor.js 2133 line.

/***************************************************************************/

mozillaForceKeyup = function(targetId) {
    var isIntervalRunning, target;
    if (jQuery.browser.mozilla) {
        isIntervalRunning = null;
        target = '#' + targetId;
        $(target).bind('keydown', function(e) {
            var forceKeyup;
            if (e.which === 229) {
                forceKeyup = function() {
                    return $(target).trigger('keyup');
                };
                if (!isIntervalRunning) {
                    return isIntervalRunning = setInterval(forceKeyup, 100);
                }
            }
        });
        return $(target).bind('blur', function(e) {
            if (isIntervalRunning) {
                clearInterval(isIntervalRunning);
                return isIntervalRunning = null;
            }
        });
    }
};

mozillaForceKeyup("text");

/***************************************************************************/

if you have problems, send mail for me 

target source is svg editor 2.6.1

thank you.

Have nice today

Original issue reported on code.google.com by kofwhgh on 23 Apr 2012 at 12:57

GoogleCodeExporter commented 8 years ago
Hi Huyoung,

Thanks for the snippet, I will review it by next month.

Original comment by asyazwan on 23 Apr 2012 at 3:09

GoogleCodeExporter commented 8 years ago
Thanks for the patch here, but can you please attach as a diff file (svn diff 
against the trunk)?

Original comment by codedr...@gmail.com on 23 May 2012 at 3:00

GoogleCodeExporter commented 8 years ago

Original comment by bret...@gmail.com on 7 Apr 2014 at 3:38

GoogleCodeExporter commented 8 years ago

Original comment by bret...@gmail.com on 7 Apr 2014 at 3:45