@@ -184,42 +184,42 @@ namespace CefSharp
184184
185185 void WebView::OnPreviewKey (KeyEventArgs^ e)
186186 {
187- CefRefPtr<CefBrowser> browser;
188- if (!TryGetCefBrowser (browser))
189- {
190- return ;
191- }
192-
193- if (e->Key == Key::Tab ||e->Key >= Key::Left && e->Key <= Key::Down)
194- {
195- CefBrowser::KeyType type = e->IsDown ? KT_KEYDOWN : KT_KEYUP;
196- CefKeyInfo keyInfo;
197- keyInfo.key = KeyInterop::VirtualKeyFromKey (e->Key );
198- browser->SendKeyEvent (type, keyInfo, 0 );
199-
200- e->Handled = true ;
201- }
202- }
203-
187+ CefRefPtr<CefBrowser> browser;
188+ if (!TryGetCefBrowser (browser))
189+ {
190+ return ;
191+ }
192+
193+ if (e->Key == Key::Tab || e->Key >= Key::Left && e->Key <= Key::Down)
194+ {
195+ CefBrowser::KeyType type = e->IsDown ? KT_KEYDOWN : KT_KEYUP;
196+ CefKeyInfo keyInfo;
197+ keyInfo.key = KeyInterop::VirtualKeyFromKey (e->Key );
198+ browser->SendKeyEvent (type, keyInfo, 0 );
199+
200+ e->Handled = true ;
201+ }
202+ }
203+
204204 void WebView::OnPreviewTextInput (TextCompositionEventArgs^ e)
205- {
206- CefRefPtr<CefBrowser> browser;
207- if (!TryGetCefBrowser (browser))
208- {
209- return ;
210- }
211-
212- CefBrowser::KeyType type;
213- for (int i = 0 ;i< e->Text ->Length ;i++)
214- {
215- CefKeyInfo keyInfo;
216- keyInfo.key =(int )e->Text [i];
217- type = KT_CHAR;
218- browser->SendKeyEvent (type, keyInfo, 0 );
219- }
220- e->Handled = true ;
221- }
222-
205+ {
206+ CefRefPtr<CefBrowser> browser;
207+ if (!TryGetCefBrowser (browser))
208+ {
209+ return ;
210+ }
211+
212+ CefBrowser::KeyType type;
213+ for (int i = 0 ; i < e->Text ->Length ; i++)
214+ {
215+ CefKeyInfo keyInfo;
216+ keyInfo.key = (int )e->Text [i];
217+ type = KT_CHAR;
218+ browser->SendKeyEvent (type, keyInfo, 0 );
219+ }
220+ e->Handled = true ;
221+ }
222+
223223 void WebView::OnMouseButton (MouseButtonEventArgs^ e)
224224 {
225225 CefRefPtr<CefBrowser> browser;
@@ -667,7 +667,7 @@ namespace CefSharp
667667
668668 Content = _image = gcnew Image ();
669669 RenderOptions::SetBitmapScalingMode (_image, BitmapScalingMode::NearestNeighbor);
670-
670+
671671 _popup = gcnew Popup ();
672672 _popup->Child = _popupImage = gcnew Image ();
673673
@@ -701,7 +701,7 @@ namespace CefSharp
701701 {
702702 // If the display properties is set to e.g. 125%, M11 and M22 will be 1.25.
703703 return _matrix->M11 != 1 ||
704- _matrix->M22 != 1 ;
704+ _matrix->M22 != 1 ;
705705 }
706706
707707 Transform^ WebView::GetScaleTransform()
@@ -822,7 +822,7 @@ namespace CefSharp
822822 void WebView::SetPopupSizeAndPosition (const void * rect)
823823 {
824824 auto cefRect = (const CefRect*) rect;
825-
825+
826826 _popupX = cefRect->x ;
827827 _popupY = cefRect->y ;
828828 _popupWidth = cefRect->width ;
0 commit comments