Disable "remove on backspace" (or remove ibeam entirely)

disable synonym
disable meaning
disable in a sentence
disable in spanish
disable definition
disable noun
how to pronounce disable
disabled

I'm trying to make a custom select box using selectize.js. So far it was easy to configure and the API supports about everything. The last thing I need to do is disable the option to remove items pressing backspace. For this I couldn't find any methods to call of properties to configure. Do you have any idea on how to achieve this?

Also, another thing that would work for me will be to disable "ibeam". This is the feature that allows you to use the arrow keys to navigate between the selected items. Is this is disabled the user will be able to remove only the last item which is not a big issue for me.

The perfect solution is to disable both, but disabling one of them will work too.

Thanks

A little late to the game...

I wanted to stop backspace from removing items but keep the functionality of the remove buttons.

I wrote this plugin:

Selectize.define("stop_backspace_delete", function (options) {
  var self = this;

  this.deleteSelection = (function() {
    var original = self.deleteSelection;

    return function (e) {
      if (!e || e.keyCode !== 8) {
        return original.apply(this, arguments);
      }

      return false;
    };
  })();
});

Disable, 1 : to deprive of legal right, qualification, or capacity. 2 : to make incapable or ineffective specifically : to cause to have a disability. Other Words from disable. disablement noun. Disable definition, to make unable or unfit; weaken or destroy the capability of; incapacitate: The detective successfully disabled the bomb. He was disabled by the accident.

I've added 3 new config options, submitted them to github and also made a PR.

  1. disableDelete: disable "delete on backspace"
  2. disableCaret: disable moving between items
  3. hidePlaceholder: hide the place holder when there is at least one item selected

Until the PR is accepted here is my repo: https://github.com/deiucanta/selectize.js

DISABLE, verb (used with object), dis�a�bled, dis�a�bling. to make unable or unfit; weaken or destroy the capability of; incapacitate: The detective successfully disabled the bomb. He was disabled by the accident. to make legally incapable; disqualify. 1. handicap, weaken, cripple, damage, hamstring, paralyse, impair, debilitate, incapacitate, prostrate, unman, immobilize, put out of action, disempower, enfeeble, render inoperative, render hors de combat Tendon damage really disabled her. 2. deactivate, disarm, defuse, make safe You need to disable the car alarm.

I just created a Selectize plugin that removes the ability for the user to deselect options. It completely prevents removing items via backspace or delete buttons.

https://github.com/akrikos/selectize-no-delete

You'll need to include the js file and add the plugin to your selectize options:

$('#selectElement').selectize({
  plugins: {
    'no-delete': {}
  }
});

disable, disable verb (PERSON). [ T often passive ]. to cause someone to have an illness, injury� to turn off a part of a computer system, or stop it from working in the normal way: To disable a program or device, right-click its listing under the appropriate category and choose 'Disable'. (Definition of disable from the Cambridge Business English Dictionary © Cambridge University Press)

I don't know about earlier version.

But now you can just add in configuration.

persist: true.

Disable, VerbEdit. disable (third-person singular simple present disables, present participle disabling, simple past and past participle disabled). (transitive) To render� Some common synonyms of disable are cripple, debilitate, enfeeble, sap, undermine, and weaken. While all these words mean "to lose or cause to lose strength or vigor," disable suggests bringing about impairment or limitation in a physical or mental ability. disabled by an injury sustained at work When might cripple be a better fit than disable?

For disabling deleting you will probably change the source. Here you have relevant code fragments: https://github.com/brianreavis/selectize.js/blob/master/src/selectize.js#L434 and https://github.com/brianreavis/selectize.js/blob/master/src/selectize.js#L1557

Second thing would be simillar.

DISABLE (verb) definition and synonyms, 1(of a disease, injury, or accident) limit (someone) in their movements, senses, or activities. 'it's an injury that could disable somebody for life'. More example� Synonyms for disable at Thesaurus.com with free online thesaurus, antonyms, and definitions. Find descriptive alternatives for disable.

disable, Define DISABLE (verb) and get synonyms. What is DISABLE (verb)? DISABLE ( verb) meaning, pronunciation and more by Macmillan Dictionary. a. lacking one or more physical powers, such as the ability to walk or to coordinate one's movements, as from the effects of a disease or accident, or through mental impairment b. (as collective noun; preceded by the): the disabled.

Disable Meaning, From Longman Dictionary of Contemporary EnglishRelated topics: Illness & disabilitydisabledis‧a‧ble /dɪsˈeɪbəl/ verb [transitive] 1 MIDISABLEDto make� Synonyms for disabled at Thesaurus.com with free online thesaurus, antonyms, and definitions. Find descriptive alternatives for disabled.

What does disable mean?, Video shows what disable means. To render unable; to take away an ability of.. To impair the Duration: 0:37 Posted: Apr 18, 2015 The free PC-cleaning utility CCleaner also has a tool that allows you to disable startup programs. In CCleaner, click the Tools button on the left side of the dialog box and click Startup to see the list of startup programs.

Comments
  • I used this with !e || (e.keyCode !== 8 && e.keyCode !== 46) to prevent the delete key as well if that's helpful to anyone
  • Is there a reason you didn't extend things with a plugin instead of changing the source code?
  • @Akrikos probably because a lot of people would find that feature useful.
  • I'd like to do this without changing the source code, it's safer for the updates.
  • Of course, but it's just not possible :) You can always fork and send pull request to add the option, it should be easy.
  • It's totally possible. You need to write a plugin for selectize that removes the ability to delete selections. I just wrote one to solve the same problem and will post a link in another answer.