Package org.odlabs.wiquery.plugins.ckeditor.options

Examples of org.odlabs.wiquery.plugins.ckeditor.options.CommandKeyStrokeOption


  public ArrayItemOptions<CommandKeyStrokeOption> getKeyStrokes() {
    ICollectionItemOptions coll = options.getListItemOptions("keystrokes");
   
    if(coll == null){
      ArrayItemOptions<CommandKeyStrokeOption> arr = new ArrayItemOptions<CommandKeyStrokeOption>();
      arr.add(new CommandKeyStrokeOption("toolbarFocus", 121, KeyStrokeOption.KeyStrokeMask.ALT));
      arr.add(new CommandKeyStrokeOption("elementsPathFocus", 122, KeyStrokeOption.KeyStrokeMask.ALT));
      arr.add(new CommandKeyStrokeOption("contextMenu", 121, KeyStrokeOption.KeyStrokeMask.SHIFT));
      arr.add(new CommandKeyStrokeOption("undo", 90, KeyStrokeOption.KeyStrokeMask.CTRL));
      arr.add(new CommandKeyStrokeOption("redo", 89, KeyStrokeOption.KeyStrokeMask.CTRL));
      arr.add(new CommandKeyStrokeOption("redo", 121, KeyStrokeOption.KeyStrokeMask.CTRL, KeyStrokeOption.KeyStrokeMask.SHIFT));
      arr.add(new CommandKeyStrokeOption("link", 76, KeyStrokeOption.KeyStrokeMask.CTRL));
      arr.add(new CommandKeyStrokeOption("bold", 66, KeyStrokeOption.KeyStrokeMask.CTRL));
      arr.add(new CommandKeyStrokeOption("italic", 73, KeyStrokeOption.KeyStrokeMask.CTRL));
      arr.add(new CommandKeyStrokeOption("underline", 85, KeyStrokeOption.KeyStrokeMask.CTRL));
      arr.add(new CommandKeyStrokeOption("toolbarCollapse", 109, KeyStrokeOption.KeyStrokeMask.ALT));
      return arr;
    }
   
    return (ArrayItemOptions<CommandKeyStrokeOption>) coll;
  }
View Full Code Here

TOP

Related Classes of org.odlabs.wiquery.plugins.ckeditor.options.CommandKeyStrokeOption

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.