[hbbtv] revert keymap fixed.
authorsmlee <smlee@dev3>
Thu, 12 Feb 2015 06:48:06 +0000 (15:48 +0900)
committersmlee <smlee@dev3>
Thu, 12 Feb 2015 06:48:06 +0000 (15:48 +0900)
lib/python/Plugins/Extensions/HbbTV/browser.py
lib/python/Plugins/Extensions/HbbTV/plugin.py
lib/python/Plugins/Extensions/HbbTV/vbipc.py

index 73af39e..e7e7386 100644 (file)
@@ -296,9 +296,8 @@ class BrowserPreferenceWindow(ConfigListScreen, Screen):
                        mode = 1
                self._keymapType = self.menuItemKeyboardLayout.value
                BrowserSetting().setData(url, mode, self._keymapType)
                        mode = 1
                self._keymapType = self.menuItemKeyboardLayout.value
                BrowserSetting().setData(url, mode, self._keymapType)
-               # send contorller
-               #command_util = getCommandUtil()
-               #command_util.sendCommand('OP_BROWSER_NEED_RELOAD_KEYMAP')
+
+               VBController.command('CONTROL_RELOAD_KEYMAP')
                self.close()
 
        def keyRed(self):
                self.close()
 
        def keyRed(self):
index 22d5f69..1dd214c 100644 (file)
@@ -53,6 +53,7 @@ _OPCODE_LIST = [
                'OOIF_BROADCAST_PLAY',
                'OOIF_BROADCAST_STOP',
                'OOIF_BROADCAST_CHECK',
                'OOIF_BROADCAST_PLAY',
                'OOIF_BROADCAST_STOP',
                'OOIF_BROADCAST_CHECK',
+               'CONTROL_RELOAD_KEYMAP',
                'OPCODE_END'
                ]
 
                'OPCODE_END'
                ]
 
index 8c3fbb3..10fc8ca 100644 (file)
@@ -125,9 +125,15 @@ class VBServerThread(threading.Thread):
                                        finally:
                                                if conn is not None:
                                                        conn.close()
                                        finally:
                                                if conn is not None:
                                                        conn.close()
+               self.mSock.close()
 
        def kill(self):
                self.mFlag = False
 
        def kill(self):
                self.mFlag = False
+               addr = vbcfg.SOCKETFILE
+               try:
+                       os.unlink(addr)
+               except:
+                       pass
 
 class VBHandlers:
        def __init__(self, opcode_list, szcbh):
 
 class VBHandlers:
        def __init__(self, opcode_list, szcbh):