mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-28 09:24:14 +01:00
OS recognition using helpers
This commit is contained in:
parent
800816379e
commit
1ab1651bbe
@ -676,8 +676,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
// Since CTRL+SHIFT+U is not working on iBus keyboard input method
|
||||
// Lets redirect the shorcut for Linux to CTRL+ALT+U
|
||||
// Leaving the preexisting behaviour for Windows & Mac OS
|
||||
String OS = System.getProperty("os.name").toLowerCase();
|
||||
if (OS.indexOf("nix") >= 0 || OS.indexOf("nux") >= 0 || OS.indexOf("aix") >= 0){
|
||||
if (OSUtils.isLinux()) {
|
||||
item = newJMenuItemAlt(tr("Upload Using Programmer"), 'U');
|
||||
} else {
|
||||
item = newJMenuItemShift(tr("Upload Using Programmer"), 'U');
|
||||
|
Loading…
Reference in New Issue
Block a user