mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 22:29:18 +01:00
changes for wheelmouse auto-detect, and incorporating video
This commit is contained in:
@@ -331,13 +331,24 @@ public class PdeEditor extends Panel {
|
||||
// windowActivated doesn't seem to do much, so focus listener better
|
||||
presentationWindow.addFocusListener(new FocusAdapter() {
|
||||
public void focusGained(FocusEvent e) {
|
||||
//System.out.println("focusGained: " + e);
|
||||
//if (frame != null) frame.toFront(); // editor to front
|
||||
try {
|
||||
//System.out.println("moving to front");
|
||||
engine.window.toFront();
|
||||
} catch (Exception ex) { }
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
presentationWindow.addWindowListener(new WindowAdapter() {
|
||||
public void windowActivated(WindowEvent e) {
|
||||
//System.out.println(e);
|
||||
//PdeEditorConsole.systemOut.println(e);
|
||||
}
|
||||
});
|
||||
*
|
||||
|
||||
/*
|
||||
Document doc = textarea.document;
|
||||
//System.out.println(doc);
|
||||
|
||||
Reference in New Issue
Block a user