Skip to content

Commit 51b7e21

Browse files
authored
Add files via upload
1 parent 350653c commit 51b7e21

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Form1.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void InitializeChromium()
3030
settings.CachePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\CEF";
3131
Cef.Initialize(settings);
3232
browser = new ChromiumWebBrowser("https://jstris.jezevec10.com");
33-
browser.KeyboardHandler = new KeyboardHandler();
33+
//browser.KeyboardHandler = new KeyboardHandler();
3434
this.Controls.Add(browser);
3535
browser.Dock = DockStyle.Fill;
3636

@@ -46,7 +46,13 @@ private void Jstris_KeyDown(object sender, KeyEventArgs e)
4646
}
4747

4848

49-
//KeyboardHandler by tobre => https://stackoverflow.com/questions/60740328/keyboard-shortcut-does-not-make-it-to-cefsharp-browser-control
49+
/*
50+
KeyboardHandler by tobre => https://stackoverflow.com/questions/60740328/keyboard-shortcut-does-not-make-it-to-cefsharp-browser-control
51+
52+
This will allow ALT+F4
53+
54+
Current State: Its scuffed and won't be featured. I'll work on it soon
55+
*/
5056
public class KeyboardHandler : IKeyboardHandler
5157
{
5258
private bool _cefAltKeyPressed;

0 commit comments

Comments
 (0)