File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments