File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
sources/net.sf.j2s.java.core/src/swingjs/plaf Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1235,13 +1235,13 @@ protected void setMnemonic(int newValue) {
12351235 if (newValue == mnemonic || domNode == null )
12361236 return ;
12371237 if (newValue < 0 ) {
1238- newValue = (isLabel ? (label == null ? 0 : label .getDisplayedMnemonic ())
1239- : /** @j2sNative this.jc.getMnemonic$ && this.jc.getMnemonic$() ||*/ 0 );
1238+ newValue = (isLabel ? (label == null ? - 1 : label .getDisplayedMnemonic ())
1239+ : /** @j2sNative this.jc.getMnemonic$ && this.jc.getMnemonic$() ||*/ - 1 );
12401240 }
12411241 DOMNode node = (menuAnchorNode == null ? domNode : menuAnchorNode );
1242- if (newValue != mnemonic )
1242+ if (mnemonic > 0 && newValue != mnemonic )
12431243 removeClass (node , "ui-mnem-" + Character .toLowerCase (mnemonic ));
1244- if (newValue != 0 )
1244+ if (newValue > 0 )
12451245 addClass (node , "ui-mnem-" + Character .toLowerCase (newValue ));
12461246 mnemonic = newValue ;
12471247 }
You can’t perform that action at this time.
0 commit comments