Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1c4db2

Browse filesBrowse 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
Copy full SHA for e1c4db2

File tree

Expand file treeCollapse file tree

2 files changed

+135
-176
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+135
-176
lines changed
Open diff view settings
Collapse file

‎src/browser.pyx‎

Copy file name to clipboardExpand all lines: src/browser.pyx
+5-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.