mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-164993 Support for macOS special character (emoji) insertion popover
a better fix for ActionsTreeTest - define action text only in one place
This commit is contained in:
+6
-5
@@ -16,19 +16,20 @@
|
||||
package com.intellij.ide.actions;
|
||||
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.actionSystem.Presentation;
|
||||
import com.intellij.openapi.project.DumbAwareAction;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.ui.mac.foundation.Foundation;
|
||||
import com.intellij.ui.mac.foundation.ID;
|
||||
|
||||
public class MacEmojiAndSymbolsInputAction extends DumbAwareAction {
|
||||
public MacEmojiAndSymbolsInputAction() {
|
||||
// it's not currently possible to use &, when text is set in resource bundle
|
||||
getTemplatePresentation().setText("Emoji & Symbols", false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(AnActionEvent e) {
|
||||
Presentation presentation = e.getPresentation();
|
||||
presentation.setEnabledAndVisible(SystemInfo.isMac);
|
||||
// it's not currently possible to use &, when text is set in resource bundle
|
||||
presentation.setText("Emoji & Symbols", false);
|
||||
e.getPresentation().setEnabledAndVisible(SystemInfo.isMac);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1577,5 +1577,4 @@ action.ToggleDistractionFreeMode.exit=Exit Distraction Free Mode
|
||||
action.TogglePresentationMode.exit=Exit Presentation Mode
|
||||
action.TogglePresentationMode.enter=Enter Presentation Mode
|
||||
|
||||
action.EmojiAndSymbols.text=Emoji and Symbols
|
||||
action.EmojiAndSymbols.description=Input special characters using macOS system palette
|
||||
Reference in New Issue
Block a user