X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-vnc-client.git/blobdiff_plain/a824f7ccc88825c5ba5a3f990cfaf3530b9d88a6..68c87b47bcfe383b57b8ba18d39e088fa4fb789d:/ButtonPanel.java?ds=sidebyside diff --git a/ButtonPanel.java b/ButtonPanel.java index 73f2446..5cae865 100644 --- a/ButtonPanel.java +++ b/ButtonPanel.java @@ -27,7 +27,7 @@ import java.awt.*; import java.awt.event.*; import java.io.*; -class ButtonPanel extends Panel implements ActionListener, ItemListener { +class ButtonPanel extends Panel implements ActionListener { VncViewer viewer; Button disconnectButton; @@ -36,8 +36,6 @@ class ButtonPanel extends Panel implements ActionListener, ItemListener { Button clipboardButton; Button ctrlAltDelButton; Button refreshButton; - Checkbox altCheckbox; - Checkbox ctrlCheckbox; ButtonPanel(VncViewer v) { viewer = v; @@ -67,15 +65,6 @@ class ButtonPanel extends Panel implements ActionListener, ItemListener { refreshButton.setEnabled(false); add(refreshButton); refreshButton.addActionListener(this); - - altCheckbox = new Checkbox("Alt"); - altCheckbox.setEnabled(false); - add(altCheckbox); - altCheckbox.addItemListener(this); - ctrlCheckbox = new Checkbox("Control"); - ctrlCheckbox.setEnabled(false); - add(ctrlCheckbox); - ctrlCheckbox.addItemListener(this); } // @@ -114,8 +103,6 @@ class ButtonPanel extends Panel implements ActionListener, ItemListener { public void enableRemoteAccessControls(boolean enable) { ctrlAltDelButton.setEnabled(enable); - ctrlCheckbox.setEnabled(enable); - altCheckbox.setEnabled(enable); } // @@ -163,13 +150,5 @@ class ButtonPanel extends Panel implements ActionListener, ItemListener { } } } - public void itemStateChanged(ItemEvent evt) { - viewer.moveFocusToDesktop(); - int state = evt.getStateChange(); - int extraModifiers = 0; - if (altCheckbox.getState()) { extraModifiers |= InputEvent.ALT_MASK; } - if (ctrlCheckbox.getState()) { extraModifiers |= InputEvent.CTRL_MASK; } - viewer.vc.extraModifiers = extraModifiers; - } }