キャンセル必要のないイベント

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5662 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-12-26 05:38:38 +00:00
parent 851f645010
commit d75c9af007

View File

@ -1019,8 +1019,8 @@ catch(e) {
/* PUBLIC API */ /* PUBLIC API */
var b = this.browser; var b = this.browser;
var event = b.ownerDocument.createEvent('UIEvents'); var event = b.ownerDocument.createEvent('Events');
event.initEvent('TreeStyleTabFocusSwitchingKeyDown', true, false, b.ownerDocument.defaultView, aEvent.keyCode); event.initEvent('TreeStyleTabFocusSwitchingKeyDown', true, false);
event.sourceEvent = aEvent; event.sourceEvent = aEvent;
b.dispatchEvent(event); b.dispatchEvent(event);
}, },
@ -1061,8 +1061,8 @@ catch(e) {
) )
) { ) {
/* PUBLIC API */ /* PUBLIC API */
let event = b.ownerDocument.createEvent('UIEvents'); let event = b.ownerDocument.createEvent('Events');
event.initEvent('TreeStyleTabFocusSwitchingStart', true, false, b.ownerDocument.defaultView, aEvent.keyCode); event.initEvent('TreeStyleTabFocusSwitchingStart', true, false);
event.scrollDown = scrollDown; event.scrollDown = scrollDown;
event.scrollUp = scrollUp; event.scrollUp = scrollUp;
event.standBy = standBy; event.standBy = standBy;
@ -1076,8 +1076,8 @@ catch(e) {
/* PUBLIC API */ /* PUBLIC API */
let (event) { let (event) {
event = document.createEvent('UIEvents'); event = document.createEvent('Events');
event.initEvent('TreeStyleTabFocusSwitchingEnd', true, false, b.ownerDocument.defaultView, aEvent.keyCode); event.initEvent('TreeStyleTabFocusSwitchingEnd', true, false);
event.scrollDown = scrollDown; event.scrollDown = scrollDown;
event.scrollUp = scrollUp; event.scrollUp = scrollUp;
event.standBy = standBy; event.standBy = standBy;
@ -1331,8 +1331,8 @@ catch(e) {
{ {
aClosedTabs = aClosedTabs.filter(function(aTab) { return !aTab.parentNode; }); aClosedTabs = aClosedTabs.filter(function(aTab) { return !aTab.parentNode; });
/* PUBLIC API */ /* PUBLIC API */
var event = aTabBrowser.ownerDocument.createEvent('UIEvents'); var event = aTabBrowser.ownerDocument.createEvent('Events');
event.initEvent('TreeStyleTabSubtreeClosed', true, false, aTabBrowser.ownerDocument.defaultView, aClosedTabs.length); event.initEvent('TreeStyleTabSubtreeClosed', true, false);
event.parent = aParentTab; event.parent = aParentTab;
event.tabs = aClosedTabs; event.tabs = aClosedTabs;
aTabBrowser.dispatchEvent(event); aTabBrowser.dispatchEvent(event);