Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/main/java/core/packetproxy/gui/RawTextPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import packetproxy.common.Utils;
import packetproxy.model.Packet;
import packetproxy.util.CharSetUtility;
import packetproxy.util.PacketProxyUtility;
import packetproxy.vulchecker.VulChecker;

public class RawTextPane extends ExtendedTextPane {
Expand All @@ -53,21 +52,11 @@ public class RawTextPane extends ExtendedTextPane {
public RawTextPane() throws Exception {
charSetUtility = CharSetUtility.getInstance();

int mask_key = ActionEvent.META_MASK;
if (!PacketProxyUtility.getInstance().isMac()) {

mask_key = ActionEvent.CTRL_MASK;
}
JPopupMenu menu = new JPopupMenu();

addKeyListener(new KeyAdapter() {

public void keyPressed(KeyEvent e) {
int mask_key = KeyEvent.META_MASK;
if (!PacketProxyUtility.getInstance().isMac()) {

mask_key = KeyEvent.CTRL_MASK;
}
switch (e.getKeyCode()) {
case KeyEvent.VK_Z :
if ((Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() & e.getModifiers()) > 0) {
Expand Down Expand Up @@ -451,7 +440,6 @@ public void setData(byte[] data) throws Exception {
}

public byte[] getData() {
// Logging.log(raw_data.toString());
return raw_data.toByteArray();
}

Expand Down
Loading