Search in sources :

Example 11 with KeySequence

use of org.rstudio.core.client.command.KeyboardShortcut.KeySequence in project rstudio by rstudio.

the class AceCommandManager method rebindCommand.

public final void rebindCommand(String id, List<KeySequence> keys) {
    JsArrayString shortcuts = JavaScriptObject.createArray().cast();
    for (KeySequence ks : keys) shortcuts.push(toAceStyleShortcutString(ks));
    rebindCommand(id, shortcuts);
}
Also used : JsArrayString(com.google.gwt.core.client.JsArrayString) KeySequence(org.rstudio.core.client.command.KeyboardShortcut.KeySequence)

Aggregations

KeySequence (org.rstudio.core.client.command.KeyboardShortcut.KeySequence)11 JsArrayString (com.google.gwt.core.client.JsArrayString)5 ArrayList (java.util.ArrayList)3 RAddin (org.rstudio.studio.client.workbench.addins.Addins.RAddin)3 TableRowElement (com.google.gwt.dom.client.TableRowElement)2 Command (com.google.gwt.user.client.Command)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 EditorKeyBindings (org.rstudio.core.client.command.EditorCommandManager.EditorKeyBindings)2 RAddins (org.rstudio.studio.client.workbench.addins.Addins.RAddins)2 EditTextCell (com.google.gwt.cell.client.EditTextCell)1 ValueUpdater (com.google.gwt.cell.client.ValueUpdater)1 JsArray (com.google.gwt.core.client.JsArray)1 Element (com.google.gwt.dom.client.Element)1 NativeEvent (com.google.gwt.dom.client.NativeEvent)1 Column (com.google.gwt.user.cellview.client.Column)1 TextColumn (com.google.gwt.user.cellview.client.TextColumn)1 TextHeader (com.google.gwt.user.cellview.client.TextHeader)1 Comparator (java.util.Comparator)1 List (java.util.List)1