-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed WPF osr ime support #2103
Changes from 4 commits
a0aa124
a0eb9b8
9cb1bb3
8b9ae4f
784f66b
931d232
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright � 2010-2017 The CefSharp Authors. All rights reserved. | ||
// Copyright ?2010-2017 The CefSharp Authors. All rights reserved. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This and other similar changes should be reverted - the copyright sign should remain in the previous encoding. (UTF-8 I presume) |
||
// | ||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. | ||
|
||
|
@@ -322,12 +322,30 @@ void CefBrowserHostWrapper::ImeSetComposition(String^ text, cli::array<Compositi | |
_browserHost->ImeSetComposition(StringUtils::ToNative(text), underlinesVector, CefRange(), range); | ||
} | ||
|
||
void CefBrowserHostWrapper::ImeSetComposition( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These can likely be removed and you just get a reference to the underlying It's my understanding that some of the params are only used on |
||
const CefString& text, | ||
const std::vector<CefCompositionUnderline>& underlines, | ||
const CefRange& replacement_range, | ||
const CefRange& selection_range) { | ||
|
||
ThrowIfDisposed(); | ||
_browserHost->ImeSetComposition(text, underlines, replacement_range, selection_range); | ||
} | ||
|
||
void CefBrowserHostWrapper::ImeCommitText(String^ text) | ||
{ | ||
ThrowIfDisposed(); | ||
ThrowIfDisposed(); | ||
|
||
//Range and cursor position are Mac OSX only | ||
_browserHost->ImeCommitText(StringUtils::ToNative(text), CefRange(), NULL); | ||
} | ||
|
||
void CefBrowserHostWrapper::ImeCommitText(const CefString& text, | ||
const CefRange& replacement_range, | ||
int relative_cursor_pos) { | ||
|
||
//Range and cursor position are Mac OSX only | ||
_browserHost->ImeCommitText(StringUtils::ToNative(text), CefRange(), NULL); | ||
ThrowIfDisposed(); | ||
_browserHost->ImeCommitText(text, replacement_range, relative_cursor_pos); | ||
} | ||
|
||
void CefBrowserHostWrapper::ImeFinishComposingText(bool keepSelection) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part should be reverted, since it disables strong named signing.