Skip to content

Commit

Permalink
Fix #716
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoon committed Sep 6, 2016
1 parent 470a00e commit d42f740
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export class BaseAction {

canBeRepeatedWithDot = false;

private _keys : string[] = [];

/**
* Modes that this action can be run in.
*/
Expand All @@ -102,7 +104,15 @@ export class BaseAction {
/**
* The sequence of keys you use to trigger the action.
*/
public keys: string[];
public set keys(arr: string[]) {
for (var i = 0; i < arr.length; i++) {
this._keys[i] = arr[i].toLocaleLowerCase();
}
}

public get keys() : string[] {
return this._keys;
}

public mustBeFirstKey = false;

Expand Down

0 comments on commit d42f740

Please sign in to comment.