add deprecation message for commmandKeyBinding
This commit is contained in:
parent
cc2f80f8c1
commit
04cc031da6
3 changed files with 40 additions and 5 deletions
|
|
@ -1,3 +1,28 @@
|
||||||
|
|
||||||
|
* New Features
|
||||||
|
- Accessibility Theme for Ace (Peter Xiao)
|
||||||
|
- use snipetManager for expanding emmet snippets
|
||||||
|
- update jshint to 2.1.4
|
||||||
|
- improve php syntax checker (jdalegonzalez)
|
||||||
|
- add option for autoresizing
|
||||||
|
- add option for autohiding vertical scrollbar
|
||||||
|
- improvements to highlighting of xml like languages (danyaPostfactum)
|
||||||
|
- add support for autocompletion and snippets (gjtorikyan danyaPostfactum and others)
|
||||||
|
- add option to merge similar changes in undo history
|
||||||
|
- add scrollPastEnd option
|
||||||
|
- 6a87d97 Merge pull request #1494 from danyaPostfactum/snippetcompleter
|
||||||
|
- use html5 dragndrop for text dragging (danyaPostfactum)
|
||||||
|
|
||||||
|
* API Changes
|
||||||
|
- fixed typo in HashHandler commmandManager
|
||||||
|
|
||||||
|
* new language modes
|
||||||
|
- Nix (Zef Hemel)
|
||||||
|
- Protobuf (Zef Hemel)
|
||||||
|
- Soy
|
||||||
|
- Handlebars
|
||||||
|
-
|
||||||
|
|
||||||
2013.06.04 Version 1.1.01
|
2013.06.04 Version 1.1.01
|
||||||
|
|
||||||
- Improved emacs keybindings (Robert Krahn)
|
- Improved emacs keybindings (Robert Krahn)
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,7 @@ var EventEmitter = require("../lib/event_emitter").EventEmitter;
|
||||||
**/
|
**/
|
||||||
|
|
||||||
var CommandManager = function(platform, commands) {
|
var CommandManager = function(platform, commands) {
|
||||||
this.platform = platform;
|
HashHandler.call(this, commands, platform);
|
||||||
this.commands = this.byName = {};
|
|
||||||
this.commandKeyBinding = {};
|
|
||||||
|
|
||||||
this.addCommands(commands);
|
|
||||||
|
|
||||||
this.setDefaultHandler("exec", function(e) {
|
this.setDefaultHandler("exec", function(e) {
|
||||||
return e.command.exec(e.editor, e.args || {});
|
return e.command.exec(e.editor, e.args || {});
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,20 @@ function HashHandler(config, platform) {
|
||||||
this.commands = {};
|
this.commands = {};
|
||||||
this.commandKeyBinding = {};
|
this.commandKeyBinding = {};
|
||||||
|
|
||||||
|
// todo remove this after a while
|
||||||
|
if (this.__defineGetter__ && this.__defineSetter__ && typeof console != "undefined" && console.error) {
|
||||||
|
this.__defineGetter__("commmandKeyBinding", function() {
|
||||||
|
console.error("commmandKeyBinding has too many m's. use commandKeyBinding")
|
||||||
|
return this.commandKeyBinding;
|
||||||
|
});
|
||||||
|
this.__defineSetter__("commmandKeyBinding", function(val) {
|
||||||
|
console.error("commmandKeyBinding has too many m's. use commandKeyBinding")
|
||||||
|
return this.commandKeyBinding = val;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.commmandKeyBinding = commandKeyBinding;
|
||||||
|
}
|
||||||
|
|
||||||
this.addCommands(config);
|
this.addCommands(config);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue