File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545import javafx .stage .Stage ;
4646import javafx .stage .WindowEvent ;
4747import javafx .util .Duration ;
48-
4948import processing .core .*;
5049
5150
@@ -679,7 +678,6 @@ protected void fxScrollEvent(ScrollEvent event) {
679678 }
680679
681680
682- @ SuppressWarnings ("deprecation" )
683681 protected void fxKeyEvent (javafx .scene .input .KeyEvent fxEvent ) {
684682 int action = 0 ;
685683 EventType <? extends KeyEvent > et = fxEvent .getEventType ();
@@ -714,6 +712,8 @@ protected void fxKeyEvent(javafx.scene.input.KeyEvent fxEvent) {
714712 keyChar , keyCode ));
715713 }
716714
715+
716+ @ SuppressWarnings ("deprecation" )
717717 private int getKeyCode (KeyEvent fxEvent ) {
718718 if (fxEvent .getEventType () == KeyEvent .KEY_TYPED ) {
719719 return 0 ;
@@ -723,10 +723,14 @@ private int getKeyCode(KeyEvent fxEvent) {
723723 switch (kc ) {
724724 case ALT_GRAPH :
725725 return PConstants .ALT ;
726+ default :
727+ break ;
726728 }
727729 return kc .impl_getCode ();
728730 }
729731
732+
733+ @ SuppressWarnings ("deprecation" )
730734 private char getKeyChar (KeyEvent fxEvent ) {
731735 if (fxEvent .getEventType () == KeyEvent .KEY_TYPED ) {
732736 return fxEvent .getCharacter ().charAt (0 );
@@ -779,9 +783,9 @@ private char getKeyChar(KeyEvent fxEvent) {
779783 return PConstants .CODED ;
780784 case ENTER :
781785 return '\n' ;
786+ default :
787+ break ;
782788 }
783-
784789 return kc .impl_getChar ().charAt (0 );
785790 }
786-
787791}
Original file line number Diff line number Diff line change @@ -22,6 +22,14 @@ X https://github.com/processing/processing/pull/3686
2222X added note about AIOOBE seen earlier
2323X Update LowLevelGL to use VBOs
2424X https://github.com/processing/processing-docs/pull/289
25+ X Remove legacy GL functions from PGL
26+ X https://github.com/processing/processing/issues/3674
27+ X https://github.com/processing/processing/pull/3691
28+ X https://github.com/processing/processing/issues/3671
29+ X https://github.com/processing/processing/issues/3621
30+ X "Internal graphics not initialized yet"
31+ X https://github.com/processing/processing/issues/3690
32+ X https://github.com/processing/processing/pull/3692
2533
2634cleaning
2735X How do images behave when pixelDensity(2) is set?
You can’t perform that action at this time.
0 commit comments