From ce443a7f866faea7d71c924a897710d351725072 Mon Sep 17 00:00:00 2001 From: Kazunori Kajihiro Date: Fri, 30 Mar 2012 11:57:16 +0900 Subject: [PATCH] fixed: key assign is broken on FreeBSD --- coffee/key.coffee | 2 +- key.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coffee/key.coffee b/coffee/key.coffee index de0ce5d..e79aff1 100644 --- a/coffee/key.coffee +++ b/coffee/key.coffee @@ -250,7 +250,7 @@ g.KeyManager = result = keyIdentifier[code] # bull shit! fxxk windows and linux - if util.getPlatform() == "Windows" or util.getPlatform() == "Linux" + if util.getPlatform() != "Mac" if g.util.getLang() == "ja" if shift if shiftWinKeyIdentifier_ja[code]? diff --git a/key.js b/key.js index 7135232..6456203 100644 --- a/key.js +++ b/key.js @@ -269,7 +269,7 @@ getLocalKeyCode: function(code, ctrl, shift, alt, meta) { var result; result = keyIdentifier[code]; - if (util.getPlatform() === "Windows" || util.getPlatform() === "Linux") { + if (util.getPlatform() !== "Mac") { if (g.util.getLang() === "ja") { if (shift) { if (shiftWinKeyIdentifier_ja[code] != null) {