- Timestamp:
- 2015-06-21T15:24:17+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r8513 r8518 130 130 @Override 131 131 public void initSystemShortcuts() { 132 // CHECKSTYLE.OFF: LineLength 132 133 // TODO: Insert system shortcuts here. See Windows and especially OSX to see how to. 133 134 for (int i = KeyEvent.VK_F1; i <= KeyEvent.VK_F12; ++i) { 134 Shortcut.registerSystemShortcut("screen:toogle"+i, tr("reserved"), 135 i, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK).setAutomatic(); 136 } 137 Shortcut.registerSystemShortcut("system:reset", tr("reserved"), 138 KeyEvent.VK_DELETE, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK).setAutomatic(); 139 Shortcut.registerSystemShortcut("system:resetX", tr("reserved"), 140 KeyEvent.VK_BACK_SPACE, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK).setAutomatic(); 135 Shortcut.registerSystemShortcut("screen:toogle"+i, tr("reserved"), i, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK) 136 .setAutomatic(); 137 } 138 Shortcut.registerSystemShortcut("system:reset", tr("reserved"), KeyEvent.VK_DELETE, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK) 139 .setAutomatic(); 140 Shortcut.registerSystemShortcut("system:resetX", tr("reserved"), KeyEvent.VK_BACK_SPACE, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK) 141 .setAutomatic(); 142 // CHECKSTYLE.ON: LineLength 141 143 } 142 144 143 145 /** 144 146 * This should work for all platforms. Yeah, should. 145 * See PlatformHook.java for a list of reasons why 146 * this is implemented here... 147 * See PlatformHook.java for a list of reasons why this is implemented here... 147 148 */ 148 149 @Override … … 168 169 public boolean canFullscreen() { 169 170 return !GraphicsEnvironment.isHeadless() && 170 GraphicsEnvironment.getLocalGraphicsEnvironment() 171 .getDefaultScreenDevice().isFullScreenSupported(); 171 GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().isFullScreenSupported(); 172 172 } 173 173 … … 460 460 * 461 461 * <p>The font configuration in Java doesn't include some Indic scripts, 462 * even though MS Windows ships with fonts that cover these unicode 463 * ranges.</p> 462 * even though MS Windows ships with fonts that cover these unicode ranges.</p> 464 463 * 465 464 * <p>To fix this, the fontconfig.properties template is copied to the JOSM … … 468 467 * to the customized fontconfig.properties file.</p> 469 468 * 470 * <p>This is a crude hack, but better than no font display at all for these 471 * languages. 469 * <p>This is a crude hack, but better than no font display at all for these languages. 472 470 * There is no guarantee, that the template file 473 471 * ($JAVA_HOME/lib/fontconfig.properties.src) matches the default … … 568 566 * Must be done without triggering the Java Font initialization. 569 567 * (See {@link #extendFontconfig(java.lang.String)}, have to set system 570 * property first, which is then read by sun.awt.FontConfiguration upon 571 * initialization.) 568 * property first, which is then read by sun.awt.FontConfiguration upon initialization.) 572 569 * 573 570 * @return list of file names … … 580 577 * Get default list of additional fonts to add to the configuration. 581 578 * 582 * Java will choose thee first font in the list that can render a certain 583 * character. 579 * Java will choose thee first font in the list that can render a certain character. 584 580 * 585 581 * @return list of FontEntry objects
Note:
See TracChangeset
for help on using the changeset viewer.