0
썬더 버드의 작성 화면에서 현재 포커스가 에디터에 있는지 확인하고 싶습니다.썬더 버드에서 현재 포커스가 에디터에 있는지 여부를 확인하십시오.
아래 코드를 시도했지만 포커스가있는 요소의 객체 대신에 null
이 사용되었습니다.
XUL
<editor type="content-primary" id="content-frame" src="about:blank"
name="browser.message.body" flex="1" context="msgComposeContext"/>
JS는
alert(document.commandDispatcher.focusedElement);
I 현재 포커스 editor
(바디 영역)에 있는지 여부 확인하려는. 현재 포커스가있는 요소는 어떻게 얻을 수 있습니까?
왜 C++ 11 태그입니까? –