{"size": 1365, "ext": "js", "max_stars_repo_path": "ui/static/ime/jsim_hangul.js", "max_stars_repo_name": "SeaniaTwix/BetterIngameChat", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "ui/static/ime/jsim_hangul.js", "max_issues_repo_name": "SeaniaTwix/BetterIngameChat", "max_issues_repo_issues_event_min_datetime": "2022-02-17T18:50:43.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-17T18:50:43.000Z", "max_forks_repo_path": "ui/static/ime/jsim_hangul.js", "max_forks_repo_name": "SeaniaTwix/BetterIngameChat", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 26.25, "max_line_length": 114, "alphanum_fraction": 0.6315018315}
//////////////////////////////////
//
//    JS IM Hangul
//        by Colspan (Miyoshi)
//         http://colspan.net/
//        License : MIT license
//
// depend JSIM.js,johab.js,prototype.js

var JS_IM_hangul = {
  methodName : "Hangul",
  version : "20080123",
  language : "Korean",
  author : "Colspan",
  params : {
    displayString : '한',
    listBox : false,
    inlineInsertion : true
  },
  process : function( keyStatus ){
    var outputStr="";

    if( ! keyCode.isAlphabet( keyStatus.inputCode ) ){//アルファベットではない場合は処理しない
      outputStr = null;
      return outputStr;
    }

		//Shiftキーの状態による母音と子音の処理
    var noShiftCharacterSet = "abcdfghijklmnsuvxyz";
		inputChar = ( keyStatus.shiftKey && ( noShiftCharacterSet.indexOf( keyStatus.inputChar.toLowerCase() ) == -1 ) ?
      keyStatus.inputChar.toUpperCase() :
		  keyStatus.inputChar.toLowerCase()
    );

		//変換開始
		if( isJasoKey( inputChar ) ){ // 作業文字列に入力文字を演算
			this.inlineBuffer = strPlusJasoKey( this.inlineBuffer, inputChar );
		}
    if( this.inlineBuffer.length == 2 ){ //文字が確定した
      outputStr = this.inlineBuffer.substring(0, 1);
      this.inlineBuffer = this.inlineBuffer.substring(1,2);
    }
		return outputStr;
  },
	backspace : function(){
    if( this.inlineBuffer.length == 0 ) return false;
	  this.inlineBuffer = strDeleteOneJaso( this.inlineBuffer );
    return true;
  }
}

