mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-13 01:33:51 +00:00
Fixed AS1/2 - on keypress key escaping
This commit is contained in:
@@ -306,7 +306,7 @@ public class BUTTONCONDACTION implements ASMSource, Serializable {
|
||||
if (asFilename) {
|
||||
events.add("keyPress " + Helper.makeFileName(CLIPACTIONRECORD.keyToString(condKeyPress).replace("<", "").replace(">", "")) + "");
|
||||
} else {
|
||||
events.add("keyPress \"" + CLIPACTIONRECORD.keyToString(condKeyPress) + "\"");
|
||||
events.add("keyPress \"" + Helper.escapeActionScriptString(CLIPACTIONRECORD.keyToString(condKeyPress)) + "\"");
|
||||
}
|
||||
}
|
||||
String onStr = "";
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.types;
|
||||
|
||||
import com.jpexs.decompiler.flash.types.annotations.Conditional;
|
||||
@@ -204,7 +205,7 @@ public class CLIPEVENTFLAGS implements Serializable {
|
||||
if (asFileName) {
|
||||
onList.add("keyPress " + Helper.makeFileName(CLIPACTIONRECORD.keyToString(key).replace("<", "").replace(">", "")) + "");
|
||||
} else {
|
||||
} else {
|
||||
onList.add("keyPress \"" + Helper.escapeActionScriptString(CLIPACTIONRECORD.keyToString(key)) + "\"");
|
||||
}
|
||||
}
|
||||
if (clipEventDragOut) {
|
||||
|
||||
Reference in New Issue
Block a user