Skip to content

Commit e1c4db2

Browse files
committed
Fix Browser.SendKeyEvent. Update kivy_.py key map and fix crash for popups.
Always set CefKeyEvent.windows_key_code in SendKeyEvent, even on Linux. When sending key event for 'backspace' on Linux and setting "native_key_code", "character", "unmodified_character" it doesn't work. It starts working after "windows_key_code" is also sent. Update key map in kivy_.py. Fix popup crashing in kivy_.py (Issue cztomczak#237). Allow to run "python binaries_64bit/kivy_.py" by setting LD_LIBRARY_PATH.
1 parent a8dd90c commit e1c4db2

File tree

2 files changed

+135
-176
lines changed

2 files changed

+135
-176
lines changed

src/browser.pyx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,11 @@ cdef class PyBrowser:
515515
cefEvent.type = int(pyEvent["type"])
516516
if "modifiers" in pyEvent:
517517
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:
519523
cefEvent.windows_key_code = int(pyEvent["windows_key_code"])
520524
if "native_key_code" in pyEvent:
521525
cefEvent.native_key_code = int(pyEvent["native_key_code"])

0 commit comments

Comments
 (0)