MCPcopy Create free account
hub / github.com/cztomczak/cefpython / release_keyboard

Method release_keyboard

src/linux/binaries_64bit/kivy_.py:311–326  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

309 self.browser.SendFocusEvent(True)
310
311 def release_keyboard(self):
312 # When using local keyboard mode, do all the request
313 # and releases of the keyboard through js bindings,
314 # otherwise some focus problems arise.
315 self.is_shift1 = False
316 self.is_shift2 = False
317 self.is_ctrl1 = False
318 self.is_ctrl2 = False
319 self.is_alt1 = False
320 self.is_alt2 = False
321 if not self._keyboard:
322 return
323 print("[kivy_.py] release_keyboard()")
324 self._keyboard.unbind(on_key_down=self.on_key_down)
325 self._keyboard.unbind(on_key_up=self.on_key_up)
326 self._keyboard.release()
327
328 # Kivy does not provide modifiers in on_key_up, but these
329 # must be sent to CEF as well.

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.80

Tested by

no test coverage detected