File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,21 @@ public static String getModifiersText(int modifiers) {
271
271
param .append ('+' );
272
272
}
273
273
274
+ if ((modifiers & NativeInputEvent .CAPS_LOCK_MASK ) != 0 ) {
275
+ param .append (Toolkit .getProperty ("AWT.capsLock" , "Caps Lock" ));
276
+ param .append ('+' );
277
+ }
278
+
279
+ if ((modifiers & NativeInputEvent .NUM_LOCK_MASK ) != 0 ) {
280
+ param .append (Toolkit .getProperty ("AWT.numpad_numLock" , "Num Lock" ));
281
+ param .append ('+' );
282
+ }
283
+
284
+ if ((modifiers & NativeInputEvent .SCROLL_LOCK_MASK ) != 0 ) {
285
+ param .append (Toolkit .getProperty ("AWT.scrollLock" , "Scroll Lock" ));
286
+ param .append ('+' );
287
+ }
288
+
274
289
if (param .length () > 0 ) {
275
290
// Remove the trailing '+'.
276
291
param .deleteCharAt (param .length () - 1 );
You can’t perform that action at this time.
0 commit comments