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
306e56de
Commit
306e56de
authored
6 years ago
by
Mikhail Sokolov
Browse files
Options
Download
Email Patches
Plain Diff
IDEA-194169 New SE: Keyboard shortcut settings
parent
855fc27b
Branches unavailable
Tags unavailable
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform/lang-impl/src/com/intellij/ide/actions/SetShortcutAction.java
+8
-1
...-impl/src/com/intellij/ide/actions/SetShortcutAction.java
platform/platform-resources/src/idea/PlatformActions.xml
+1
-4
platform/platform-resources/src/idea/PlatformActions.xml
with
9 additions
and
5 deletions
+9
-5
platform/lang-impl/src/com/intellij/ide/actions/SetShortcutAction.java
+
8
-
1
View file @
306e56de
...
...
@@ -27,7 +27,6 @@ public class SetShortcutAction extends AnAction implements DumbAware {
if
(
seDialog
==
null
)
{
return
;
}
seDialog
.
cancel
();
KeymapManager
km
=
KeymapManager
.
getInstance
();
Keymap
activeKeymap
=
km
!=
null
?
km
.
getActiveKeymap
()
:
null
;
...
...
@@ -41,6 +40,7 @@ public class SetShortcutAction extends AnAction implements DumbAware {
return
;
}
seDialog
.
cancel
();
String
id
=
ActionManager
.
getInstance
().
getId
(
action
);
KeymapPanel
.
addKeyboardShortcut
(
id
,
ActionShortcutRestrictions
.
getInstance
().
getForActionId
(
id
),
activeKeymap
,
component
);
}
...
...
@@ -56,6 +56,13 @@ public class SetShortcutAction extends AnAction implements DumbAware {
return
;
}
KeymapManager
km
=
KeymapManager
.
getInstance
();
Keymap
activeKeymap
=
km
!=
null
?
km
.
getActiveKeymap
()
:
null
;
if
(
activeKeymap
==
null
)
{
presentation
.
setEnabled
(
false
);
return
;
}
AnAction
action
=
e
.
getData
(
SELECTED_ACTION
);
Component
component
=
e
.
getData
(
PlatformDataKeys
.
CONTEXT_COMPONENT
);
presentation
.
setEnabled
(
action
!=
null
&&
component
!=
null
);
...
...
This diff is collapsed.
Click to expand it.
platform/platform-resources/src/idea/PlatformActions.xml
+
1
-
4
View file @
306e56de
...
...
@@ -896,9 +896,6 @@
<action
id=
"MarkNotificationsAsRead"
class=
"com.intellij.notification.impl.actions.MarkAllNotificationsAsReadAction"
/>
<action
class=
"com.intellij.ide.actions.SelectInProjectViewAction"
id=
"SelectInProjectView"
text=
"Select in Project View"
/>
<action
id=
"SetShortcutAction"
class=
"com.intellij.ide.actions.SetShortcutAction"
use-shortcut-of=
"ShowIntentionActions"
/>
<action
id=
"SetShortcutAction"
class=
"com.intellij.ide.actions.SetShortcutAction"
use-shortcut-of=
"ShowIntentionActions"
/>
</actions>
</idea-plugin>
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