WinForms - Enter/Arrow keys not working with DevTool/Popups with MultiThreadedMessageLoop = false
- 主要言語
- C#
- スター
- 10.3k
- フォーク
- 2.9k
- 平均マージ
- 5日 22時間
- マージ済み PR(30日)
- 4
説明
- **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`
コントリビューションガイド
調査の方向性
リンクされたブランチの CefSharp.MinimalExample.WinForms.csproj の変更から始め、特に MultiThreadedMessageLoop = false と Cef.DoMessageLoopWork() を呼び出すタイマーを確認します。サンプルを実行し、DevTools を開いて、Enter キーと矢印キーの失敗を再現します。マルチスレッドループおよび cefclient.exe と動作を比較します。統合されたメッセージループで両方のキー種別が機能すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- desktop, devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 32/100