チェンジセット 1794
- コミット日時:
- 2008/11/08 00:16:06 (5 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint.as
r1740 r1794 1 private const DEBUG:Boolean = false; 2 1 private const DEBUG:Boolean = true; 2 3 import flash.display.InteractiveObject; 3 4 import flash.events.Event; 4 5 import flash.events.KeyboardEvent; … … 8 9 9 10 import mx.controls.Alert; 11 import mx.controls.TextInput; 10 12 import mx.core.UIComponent; 13 import mx.core.UITextField; 11 14 import mx.events.FlexEvent; 12 15 import mx.events.NumericStepperEvent; … … 323 326 } 324 327 328 private function checkShortCutControl():Boolean { 329 var fo:InteractiveObject = stage.focus; 330 return (fo is mx.core.UITextField); 331 } 332 333 325 334 private function shortCutKeyDownHandler(evt:KeyboardEvent):void { 326 if (evt.target == this.fromTextInput || 327 evt.target == this.messageTextArea) { 335 if (checkShortCutControl()) { 328 336 return; 329 337 } … … 376 384 377 385 private function shortCutKeyUpHandler(evt:KeyboardEvent):void { 378 if (evt.target == this.fromTextInput || 379 evt.target == this.messageTextArea) { 386 if (checkShortCutControl()) { 380 387 return; 381 388 }

