Skip to content

Commit d6d1835

Browse files
committed
Fix review comments
1 parent 5895579 commit d6d1835

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎CefSharp.Wpf/ChromiumWebBrowser.cs‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -800,15 +800,15 @@ protected virtual void SetupWpfKeyboardHandler()
800800
}
801801
else
802802
{
803-
InputLanguageManager.Current.InputLanguageChanged += OnInputLangageChanged;
803+
InputLanguageManager.Current.InputLanguageChanged += OnInputLanguageChanged;
804804

805805
WpfKeyboardHandler = new WpfKeyboardHandler(this);
806806
}
807807
}
808808
catch (Exception ex)
809809
{
810810
//For now we'll ignore any errors
811-
Trace.TraceError($"Error unsubscribing from InputLanguageChanged {ex.ToString()}");
811+
Trace.TraceError($"Error initializing keyboard handler: {ex.ToString()}");
812812

813813
// For now we'll ignore any errors and just use the default keyboard handler
814814
WpfKeyboardHandler = new WpfKeyboardHandler(this);
@@ -1796,7 +1796,7 @@ private void OnDragEnter(object sender, DragEventArgs e)
17961796
}
17971797
}
17981798

1799-
private void OnInputLangageChanged(object sender, InputLanguageEventArgs e)
1799+
private void OnInputLanguageChanged(object sender, InputLanguageEventArgs e)
18001800
{
18011801
// If we are already using the WpfImeKeyboardHandler then we'll ignore any changes
18021802
if (WpfKeyboardHandler?.GetType() == typeof(WpfImeKeyboardHandler))
@@ -1812,7 +1812,7 @@ private void OnInputLangageChanged(object sender, InputLanguageEventArgs e)
18121812
WpfKeyboardHandler = new WpfImeKeyboardHandler(this);
18131813
oldKeyboardHandler?.Dispose();
18141814

1815-
InputLanguageManager.Current.InputLanguageChanged -= OnInputLangageChanged;
1815+
InputLanguageManager.Current.InputLanguageChanged -= OnInputLanguageChanged;
18161816
}
18171817
}
18181818

@@ -2925,7 +2925,7 @@ private async Task ResizeHackRun()
29252925
}
29262926
}
29272927

2928-
private void UnsubsribeInputLanguageChanged()
2928+
private void UnsubscribeInputLanguageChanged()
29292929
{
29302930
// If we are using WpfImeKeyboardHandler then we
29312931
// shouldn't need to unsubsribe from the handler
@@ -2944,7 +2944,7 @@ private void UnsubsribeInputLanguageChanged()
29442944

29452945
if (inputLangManager != null)
29462946
{
2947-
inputLangManager.InputLanguageChanged -= OnInputLangageChanged;
2947+
inputLangManager.InputLanguageChanged -= OnInputLanguageChanged;
29482948
}
29492949
});
29502950
}

‎CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ private FrameworkElement GetOutermostElement(FrameworkElement control)
472472
/// Based on the <paramref name="keyboardLayoutId"/> determine if we
473473
/// should be using IME.
474474
/// </summary>
475-
/// <param name="keyboardLayoutId">Keyboard Layout Id (obtained from <see cref="System.Globalization.CultureInfo.KeyboardLayoutId"/></param>
475+
/// <param name="keyboardLayoutId">Keyboard Layout Id (obtained from <see cref="System.Globalization.CultureInfo.KeyboardLayoutId"/>)</param>
476476
/// <returns>
477477
/// returns true if the keyboard layout matches one of our listed that support IME, otherwise false.
478478
/// </returns>

0 commit comments

Comments
 (0)