elFinder icon indicating copy to clipboard operation
elFinder copied to clipboard

keyboard events still fire after closing dialog in 1.2

Open ghost opened this issue 15 years ago β€’ 3 comments

I noticed that keyboard events still fire in 1.2 after closing down the dialog. This didn't happen in 1.1 . I'm trying to find the cause of the problem, and post it here if no-one else finds it before me.

ghost avatar Jul 05 '11 22:07 ghost

I found the cause around line 2976:

    $(document).bind('click', function(e) {
        self.fm.ui.hideMenu();
        $('input', self.cwd).trigger('change');

        if (!$(e.target).is('input,textarea,select')) {
            $('input,textarea').blur();
        }
    });

    $('input,textarea').live('focus', function(e) {
        self.lock = true;
    }).live('blur', function(e) {
        self.lock = false;
    });

The last part somehow re-enables the keyboard commands after closing down elfinder. I'm using a contenteditable by the way, not a textarea. Any idea?

ghost avatar Jul 05 '11 22:07 ghost

probably you will have to hack your code inside this block to disable your content editable block by selector

troex avatar Jul 12 '11 15:07 troex

NAVER - http://www.naver.com/

[email protected] λ‹˜κ»˜ 보내신 메일 <Re: [elFinder] keyboard events still fire after closing dialog in 1.2 (#13)> 이 λ‹€μŒκ³Ό 같은 이유둜 전솑 μ‹€νŒ¨ν–ˆμŠ΅λ‹ˆλ‹€.


λ°›λŠ” μ‚¬λžŒμ΄ νšŒμ›λ‹˜μ˜ 메일을 μˆ˜μ‹ μ°¨λ‹¨ ν•˜μ˜€μŠ΅λ‹ˆλ‹€.


lovesia avatar May 07 '15 17:05 lovesia