Comments (11)
Hm, I'm not too sure how well this will translate into other platforms (gtk/webkit-sharp for example is very minimal), but I will look into it.
from eto.
I checked other platforms and it seems Windows Forms is the only that actually has shortcut keys as an option. The preferred method to implement shortcuts is to create actions, and make them execute the back/forward/etc buttons.
from eto.
pls fix the same for WPF.
testcase:
launch Eto.Test.Wpf.csproj, select WebView tests and press F5 inside WebView.
also IE popup menu isn't disabled
from eto.
Looks like WPF's WebBrowser can't control any of this functionality.. We'll most likely have to use the WinForms WebBrowser control instead.
Re-opening this issue until it's resolved.
from eto.
I can't. I have
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Windows.Forms.dll
Additional information: Error HRESULT E_FAIL has been returned from a call to a COM component.
at
this.Control = new SWF.WebBrowser {
IsWebBrowserContextMenuEnabled = false,
WebBrowserShortcutsEnabled = false,
AllowWebBrowserDrop = false
};
call-stack
System.Windows.Forms.dll!System.Windows.Forms.WebBrowser.Refresh() + 0x3e bytes
System.Windows.Forms.dll!System.Windows.Forms.WebBrowser.AllowWebBrowserDrop.set(bool value) + 0x48 bytes
Eto.Platform.Windows.dll!Eto.Platform.Windows.Forms.Controls.WebViewHandler.WebViewHandler() Line 41 + 0x47 bytes C#
[Native to Managed Transition]
Eto.dll!Eto.Generator.CreateHandler(System.Type type, Eto.Widget widget) Line 340 + 0x22 bytes C#
Eto.dll!Eto.Widget.Widget(Eto.Generator generator, System.Type type, bool initialize) Line 127 + 0x16 bytes C#
Eto.dll!Eto.InstanceWidget.InstanceWidget(Eto.Generator generator, System.Type handlerType, bool initialize) Line 183 + 0x13 bytes C#
Eto.dll!Eto.Forms.Control.Control(Eto.Generator generator, System.Type type, bool initialize) Line 322 + 0x13 bytes C#
Eto.dll!Eto.Forms.WebView.WebView(Eto.Generator generator, System.Type type, bool initialize) Line 163 + 0x13 bytes C#
Eto.dll!Eto.Forms.WebView.WebView(Eto.Generator generator) Line 158 + 0x36 bytes C#
Eto.dll!Eto.Forms.WebView.WebView() Line 153 + 0x19 bytes C#
from eto.
Are you trying to use the WinForms WebBrowser in a WPF application, or just using the Eto.Platform.Windows platform? What OS are you getting this bug on?
from eto.
Win7 x64 box
I'm using
var generator = Generator.GetGenerator ("Eto.Platform.Windows.Generator, Eto.Platform.Windows");
this error it raised under debugger only so I can just ignore it
from eto.
Does this happen with the Eto.Test application? The WebView seems to work fine for me in WinForms generator when debugging under VS 2012 express.
from eto.
you are right - it isn't reproduced with Eto.Test
I need try to investigate this more deeply.
from eto.
Ok, tested on all platforms, keyboard shortcuts are not enabled anywhere, and you can control the context menu via the WebView.BrowserContextMenuEnabled property. A good feature to add later (when needed) would probably be the ability to specify which standard items and custom items to go in the context menu, which should be doable.
from eto.
thx. it works now,
however global keyboard shortcuts don't work too
from eto.
Related Issues (20)
- Sharing an executable version of Eto.Test HOT 2
- Remove XamMac2 platform
- Keys.Plus is obsolete although it is a separate key on german keyboards HOT 2
- [develop] .ToEto().ToNative() should return the original control HOT 2
- Form (Preview) does not work with F#
- [BUG] DocumentPage content loses focus if property changed
- BinaryFormatter is insecure and strongly cautioned against HOT 5
- [WPF on Win7] Dialogs appear with negative location HOT 2
- TextArea text is not visible when using Wrap on macOS 14 HOT 3
- C# template doesn't compile HOT 4
- [macOS] Error loading macOS .NET 6 workload project in Rider HOT 2
- [WPF] Pressing Enter in GridView moves the selection to the next line HOT 2
- Native Filepickers silently fail/don't appear when CurrentFilter is set
- Programmatically closing a dialog
- [WPF] PropertyGrid Crash with Dictionary
- Visual Studio Preview Plugin fails to render dependent forms
- Weird behavior with key events for some keys
- PointToScreen() doesn't respect the spacing set in parent DynamicLayout. An eto bug.
- GTK applications hang on quit if a file dialog was displayed. HOT 1
- How do i even use TreeGridView? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eto.