Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
0a167594
Commit
0a167594
authored
6 years ago
by
Vassiliy.Kudryashov
Browse files
Options
Download
Email Patches
Plain Diff
IDEA-203999 Double CMD doesn't show tool windows
After-review optimisation
parent
db2dd159
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/openapi/wm/impl/ToolWindowManagerImpl.java
+2
-10
...c/com/intellij/openapi/wm/impl/ToolWindowManagerImpl.java
with
2 additions
and
10 deletions
+2
-10
platform/platform-impl/src/com/intellij/openapi/wm/impl/ToolWindowManagerImpl.java
+
2
-
10
View file @
0a167594
...
...
@@ -316,16 +316,8 @@ public class ToolWindowManagerImpl extends ToolWindowManagerEx implements Persis
}
}
}
return
getModifiersVKs
(
baseModifiers
);
// We should filter out 'mixed' mask like InputEvent.META_MASK | InputEvent.META_DOWN_MASK
}
@JdkConstants
.
InputEventMask
private
static
int
getModifiersVKs
(
int
mask
)
{
int
vks
=
0
;
for
(
int
modifier
:
new
int
[]{
InputEvent
.
SHIFT_MASK
,
InputEvent
.
CTRL_MASK
,
InputEvent
.
META_MASK
,
InputEvent
.
ALT_MASK
})
{
if
((
mask
&
modifier
)
>
0
)
vks
|=
modifier
;
}
return
vks
;
// We should filter out 'mixed' mask like InputEvent.META_MASK | InputEvent.META_DOWN_MASK
return
baseModifiers
&
(
InputEvent
.
SHIFT_MASK
|
InputEvent
.
CTRL_MASK
|
InputEvent
.
META_MASK
|
InputEvent
.
ALT_MASK
);
}
private
void
resetHoldState
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help