Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Add an API to disable selectively disable IME dialog #1092

Closed

Description

@mcolyer

If a user long presses l while in vim-mode an IME dialog appears. We want to keep IME support on by default, but it would be nice to allow vim to disable it while in command mode.

Therefore I propose we adding editor.setImeVisible(boolean) to the public API so that packages can control it.

Refs electron/electron#47

Activity

  1. mcolyer commented on Mar 17, 2014

    @mcolyer
    ContributorAuthor

    Reported by a user atom/vim-mode#175

  2. izuzak commented on Sep 13, 2015

    @izuzak
    Contributor

    In atom/vim-mode#175, @rastasheep shared an approach which allows users to disable the popup for Atom only: https://gist.github.com/rastasheep/bfc8266eeb58b899054c

    Here it is inline as well, just in casse the gist gets eaten by the ever-hungry gist monster 👹:

    defaults write com.github.atom ApplePressAndHoldEnabled -bool false
    
    # Alternately, if you want this feature disabled globally, you can enter this:
    
    defaults write -g ApplePressAndHoldEnabled -bool false
    
    # In either case you'll need to restart Atom for the change to take place.
    

    Not closing this issue since it still might make sense to have an API in Atom for this.

  3. t9md commented on Mar 21, 2016

    @t9md
    Contributor

    Original request for this issue is to provide API to control IME from package.
    I still want Atom to provide API to control IME.

    I'm maintaining vim-mode-plus and want to disable IME when escaped from insert-mode.
    So I tried suggested implementation in electron/electron#47.
    Suggestion was set input type attribute to password.

    Like below

          if settings.get('disableInputMethodExceptInsertMode')
            # [FIXME] See #98.
            if @hiddenInputElement ?= @editorElement.component?.hiddenInputComponent.getDomNode()
              if mode is 'insert'
                @hiddenInputElement.removeAttribute('type')
              else
                @hiddenInputElement.setAttribute('type', 'password')

    It works, but it has side effect.
    Tab bar become undraggable(t9md/atom-vim-mode-plus#193) when set hiddenInputElement attribute type to password.
    When I dragged tab bar, tabs's dragover event get not fired if type=password.

    I believe this is one of example of unexpected side-effect.
    So we still can't find solution for original request.

  4. lock commented on Mar 30, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  5. locked and limited conversation to collaborators on Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions