Assign relations to function keys
[potlatch2.git] / net / systemeD / potlatch2 / FunctionKeyManager.as
index 494ce6112794a60cc84fdabf01571f4dc3f22686..f3ab21500e6517408d0a24f75fa6dbf64507a387 100644 (file)
@@ -44,7 +44,7 @@ package net.systemeD.potlatch2 {
                        keys[fkey]={ code:code, value:value };
                        var obj:SharedObject=SharedObject.getLocal("user_state","/");
                        obj.setProperty('F'+fkey,{ code:code, value:value });
-                       try { obj.flush(); } catch (e:Error) {}
+                       try { obj.flush(); } catch (e:Error) { trace("Error: "+e.toString()); }
                        dispatchEvent(new Event("key_changed"));
                }
 
@@ -80,6 +80,5 @@ package net.systemeD.potlatch2 {
                        listeners[keys[fkey].code](keys[fkey].value);
                        return true;
                }
-               
        }
 }