- 340 名前:名無しさん@お腹いっぱい。 mailto:sage [2009/10/24(土) 02:11:38 ID:bBcYwoC80]
- ジェスチャーは他のもの全てとダブらないようにしないとダメです
switch(direction){ //選択した文字列を上にドラッグすると検索バーに「 "選択文字列"」と追加 case 'U': var word = this.getDropText(aDragSession); if (!word) return false; if(exec){ DragNGo.searchBardispatchEvent(this.searchBar.value + " \"" + word.replace(/\n/mg,' ') + "\""); }else{ this._setStatusMessage('検索バーに「 "選択文字列"」と追加', 0); } return true; //選択した文字列を左にドラッグすると検索バーに「 -"選択文字列"」と追加 case 'L': var word = this.getDropText(aDragSession); if (!word) return false; if(exec){ DragNGo.searchBardispatchEvent(this.searchBar.value + " -\"" + word.replace(/\n/mg,' ') + "\""); }else{ this._setStatusMessage('検索バーに「 -"選択文字列"」と追加', 0); } return true; //選択した文字列を左にドラッグすると検索バーに「 OR "選択文字列"」と追加 case 'L': //これダブってるし var word = this.getDropText(aDragSession); if (!word) return false; if(exec){ DragNGo.searchBardispatchEvent(this.searchBar.value + " OR \"" + word.replace(/\n/mg,' ') + "\""); }else{ this._setStatusMessage('検索バーに「 OR "選択文字列"」と追加', 0); } return true;
|

|