Code:
#!/usr/bin/python
# -*- coding: utf8 -*-
import xbmc, xbmcaddon, xbmcplugin,xbmcgui
kb = xbmc.Keyboard(u"öäü", "Unicode Test", False)
kb.doModal()
if (kb.isConfirmed()):
print "OK =" + kb.getText()
else:
print "Cancel ="
Call the above code a few times (tested on Windows 7 64Bit) and press backspace.
Sometimes backspace works and sometimes not!
If it doesn't work then the print "OK... won't create a log entry.
Instead you'll get:
Quote:00:05:18 T:9788 DEBUG: CTextureCacheJob::GetImageHash - unable to stat url D:\Apps\XBMC Frodo Portable\portable_data\addons\plugin.video.test\icon.png
00:05:19 T:5124 DEBUG: CApplication::ProcessMouse: trying mouse action leftclick
00:05:19 T:5124 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.test/)
00:05:19 T:5124 DEBUG: ParentPath = [addons://sources/video/]
00:05:19 T:9788 DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin UnicodeTest('plugin://plugin.video.test/','0','')
00:05:19 T:9788 INFO: initializing python engine.
00:05:19 T:9788 DEBUG: new python thread created. id=3
00:05:19 T:9788 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the UnicodeTest plugin...
00:05:19 T:9248 NOTICE: Thread XBPyThread start, auto delete: false
00:05:19 T:9248 DEBUG: Python thread: start processing
00:05:19 T:9248 NOTICE: -->Python Interpreter Initialized<--
00:05:19 T:9248 DEBUG: XBPyThread::Process - The source file to load is D:\Apps\XBMC Frodo Portable\portable_data\addons\plugin.video.test\default.py
00:05:19 T:9248 DEBUG: XBPyThread::Process - Setting the Python path to D:\Apps\XBMC Frodo Portable\portable_data\addons\plugin.video.test;D:\Apps\XBMC Frodo Portable\portable_data\addons\script.module.dialogaddonscan\lib;D:\Apps\XBMC Frodo Portable\addons\weather.wunderground\resources\lib\wunderground;D:\Apps\XBMC Frodo Portable\addons\script.module.simplejson\lib;D:\Apps\XBMC Frodo Portable\portable_data\addons\script.module.beautifulsoup\lib;D:\Apps\XBMC Frodo Portable\addons\script.module.pil\lib;D:\Apps\XBMC Frodo Portable\portable_data\addons\script.common.plugin.cache\lib;D:\Apps\XBMC Frodo Portable\portable_data\addons\script.module.xbmcswift2\lib;D:\Apps\XBMC Frodo Portable\addons\script.module.pysqlite\lib;D:\Apps\XBMC Frodo Portable\system\python\DLLs;D:\Apps\XBMC Frodo Portable\system\python\Lib;D:\Apps\XBMC Frodo Portable\python26.zip;D:\Apps\XBMC Frodo Portable\system\python\lib\plat-win;D:\Apps\XBMC Frodo Portable\system\python\lib\lib-tk;D:\Apps\XBMC Frodo Portable;D:\Apps\XBMC Frodo Portable\system\python;D:\Apps\XBMC Frodo Portable\system\python\lib\site-packages;
00:05:19 T:9248 DEBUG: XBPyThread::Process - Entering source directory D:\Apps\XBMC Frodo Portable\portable_data\addons\plugin.video.test
00:05:19 T:9248 DEBUG: Instantiating addon using automatically obtained id of "plugin.video.test" dependent on version 1.0 of the xbmc.python api
00:05:19 T:5124 DEBUG: ------ Window Init (DialogBusy.xml) ------
00:05:19 T:5124 DEBUG: ------ Window Init (DialogKeyboard.xml) ------
00:05:19 T:5124 DEBUG: CAnnouncementManager - Announcement: OnInputRequested from xbmc
00:05:19 T:5124 DEBUG: GOT ANNOUNCEMENT, type: 128, from xbmc, message OnInputRequested
00:05:20 T:6632 DEBUG: CAESinkDirectSound::Deinitialize: Cleaning up
00:05:21 T:5124 DEBUG: Keyboard: scancode: 0e, sym: 0008, unicode: 0008, modifier: 0
00:05:21 T:5124 DEBUG: CApplication::OnKey: backspace (f008) pressed, trying keyboard action 61448
00:05:21 T:5124 ERROR: XFILE::CDirectory::GetDirectory - Unhandled exception
00:05:21 T:5124 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.test/
00:05:21 T:5124 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.test/) failed
00:05:21 T:5124 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/video/)
00:05:21 T:5124 DEBUG: ParentPath = []
00:05:21 T:8036 NOTICE: Thread Jobworker start, auto delete: true
00:05:21 T:9644 NOTICE: Thread Background Loader start, auto delete: false
00:05:21 T:5124 DEBUG: ------ Window Deinit (Pointer.xml) ------
00:05:21 T:9644 DEBUG: Thread Background Loader 9644 terminating
00:05:23 T:5124 DEBUG: Keyboard: scancode: 0e, sym: 0008, unicode: 0008, modifier: 0
00:05:23 T:5124 DEBUG: CApplication::OnKey: backspace (f008) pressed, trying keyboard action 61448
00:05:23 T:5124 ERROR: exception in CApplication::FrameMove()
00:05:24 T:5124 DEBUG: Keyboard: scancode: 0e, sym: 0008, unicode: 0008, modifier: 0
00:05:24 T:5124 DEBUG: CApplication::OnKey: backspace (f008) pressed, trying keyboard action 61448
00:05:24 T:5124 ERROR: exception in CApplication::FrameMove()
00:05:24 T:5124 DEBUG: Keyboard: scancode: 38, sym: 0134, unicode: 0000, modifier: 100
00:05:24 T:5124 DEBUG: CApplication::OnKey: alt-leftalt (4f0d4) pressed, trying keyboard action 61652
Please can anybody confirm this behavior/bug ?