Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyboard events still fire after closing dialog in 1.2 #13

Closed
ghost opened this issue Jul 5, 2011 · 2 comments
Closed

keyboard events still fire after closing dialog in 1.2 #13

ghost opened this issue Jul 5, 2011 · 2 comments
Milestone

Comments

@ghost
Copy link

ghost commented Jul 5, 2011

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
Copy link
Author

ghost commented Jul 5, 2011

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?

@troex
Copy link
Member

troex commented Jul 12, 2011

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

@troex troex closed this as completed May 7, 2015
@lovesia
Copy link

lovesia commented May 7, 2015

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

[email protected] 님께 보내신 메일 <Re: [elFinder] keyboard events still fire after closing dialog in 1.2 (#13)> 이 다음과 같은 이유로 전송 실패했습니다.


받는 사람이 회원님의 메일을 수신차단 하였습니다.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants