cefsharp / cefsharp/CefSharp

WinForms - Enter/Arrow keys not working with DevTool/Popups with MultiThreadedMessageLoop = false

Aperta
#2,899 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
up-for-grabs winforms
Lingua principale
C#
Stelle
10.3k
Fork
2.9k
Merge medio
5g 22h
PR unite (30g)
4

Descrizione

- **What version of the product are you using?**

Multiple versions:

*CefSharp.MinimalExample* with Nuget package 75.1.142.

But it also reproduces with 69 and 73

- **What architecture x86 or x64?**

x64

- **On what operating system?**

Windows 10

- **Are you using `WinForms`, `WPF` or `OffScreen`?**

WinForms

- **What steps will reproduce the problem?**

I used *CefSharp.MinimalExample.WinForms.csproj* as the base. I added `MultiThreadedMessageLoop = false` and called `Cef.DoMessageLoopWork()` on a timer to enable the integrated message loop.

Here is a branch with the changes: https://github.com/kiewic/CefSharp.MinimalExample/tree/kiewic/devtools-enter-key-integrated-message-loop

Once the modified sample is running:

1. Open DevTools
2. Write a command, for example, `console.log("Hello World")`
3. Press `ENTER` key, but nothing happens, the key is ignored
4. Press `left arrow` or `right arrow` to move the cursor left or right, but the cursor does not move

- **What is the expected output? What do you see instead?**

It is expected that `ENTER` and arrow keys work the same as in the multi-threaded message loop. ENTER key should execute the command, and arrow keys should move the cursor.

- **Please provide any additional information below.**

No exceptions.

Nothing relevant in *debug.log*.

- **Does this problem also occur in the `CEF` Sample Application from http://opensource.spotify.com/cefbuilds/index.html?**

This does not reproduce with `cefclient.exe`. I executed it WITHOUT `--multi-threaded-message-loop`. I tried version: `cef_binary_76.1.13+gf19c584+chromium-76.0.3809.132_windows64_client`

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con le modifiche a CefSharp.MinimalExample.WinForms.csproj nel branch collegato, in particolare MultiThreadedMessageLoop = false e il timer che chiama Cef.DoMessageLoopWork(). Esegui l’esempio, apri DevTools e riproduci i malfunzionamenti del tasto Enter e dei tasti freccia; confronta il comportamento con il loop multithread e cefclient.exe. Il lavoro è completato quando entrambi i tipi di tasti funzionano nel message loop integrato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
desktop, devtools
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
32/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.