cleaning up "save as", removing prompt stuff, cleaning up prefs

This commit is contained in:
benfry
2004-06-21 02:20:40 +00:00
parent 8eb1974193
commit ca51f70f81
6 changed files with 111 additions and 346 deletions

View File

@@ -284,13 +284,13 @@ public class PdeEditorStatus extends JPanel implements ActionListener {
// KeyEvent.VK_SPACE);
int c = event.getKeyChar();
if (c == KeyEvent.VK_ENTER) { // accept the input
/*if (c == KeyEvent.VK_ENTER) { // accept the input
editor.handleSaveAs2(editField.getText());
unedit();
event.consume();
// easier to test the affirmative case than the negative
} else if ((c == KeyEvent.VK_BACK_SPACE) ||
} else*/ if ((c == KeyEvent.VK_BACK_SPACE) ||
(c == KeyEvent.VK_DELETE) ||
(c == KeyEvent.VK_RIGHT) ||
(c == KeyEvent.VK_LEFT) ||
@@ -417,11 +417,13 @@ public class PdeEditorStatus extends JPanel implements ActionListener {
else if (mode == EDIT) unedit();
editor.buttons.clear();
/*
} else if (e.getSource() == okButton) {
// answering to "save as..." question
String answer = editField.getText();
editor.handleSaveAs2(answer);
unedit();
*/
}
}
}