mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Focus was broken for F12 on Windows.
This commit is contained in:
@@ -182,8 +182,10 @@ public abstract class FocusCommand extends ActiveRunnable implements Expirable {
|
||||
// This change seems reasonable to me. But as far as some implementations
|
||||
// can ignore the "forced" parameter we can get bad focus behaviour.
|
||||
// So let's start from mac.
|
||||
if (!myToFocus.requestFocusInWindow() && (isForced() && SystemInfo.isMac)) {
|
||||
myToFocus.requestFocus();
|
||||
if (!(myToFocus.requestFocusInWindow())) {
|
||||
if (!SystemInfo.isMac || isForced() ) {
|
||||
myToFocus.requestFocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user