| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a8dd90c commit e1c4db2
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -515,7 +515,11 @@ cdef class PyBrowser: | |||
| 515 | 515 | cefEvent.type = int(pyEvent["type"]) | |
| 516 | 516 | if "modifiers" in pyEvent: | |
| 517 | 517 | cefEvent.modifiers = long(pyEvent["modifiers"]) | |
| 518 | - if ("windows_key_code" in pyEvent) and UNAME_SYSNAME == "Windows": | ||
| 518 | + # Always set CefKeyEvent.windows_key_code in SendKeyEvent, even on | ||
| 519 | + # Linux. When sending key event for 'backspace' on Linux and setting | ||
| 520 | + # "native_key_code", "character", "unmodified_character" it doesn't | ||
| 521 | + # work. It starts working after "windows_key_code" is also sent. | ||
| 522 | + if "windows_key_code" in pyEvent: | ||
| 519 | 523 | cefEvent.windows_key_code = int(pyEvent["windows_key_code"]) | |
| 520 | 524 | if "native_key_code" in pyEvent: | |
| 521 | 525 | cefEvent.native_key_code = int(pyEvent["native_key_code"]) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments