remove default Find shortcut

180 views
Skip to first unread message

slawder

unread,
Mar 6, 2012, 4:06:28 PM3/6/12
to ace-d...@googlegroups.com
I've looked through the previous posts and bug reports around using canon/pilot to remove the binding, however our instance (embedded inside an app) doesn't seem to like the require.js define in canon. I've tried several different versions of the ace.js build, but only the current one I have works.

Anyway, is there any other way to destroy that keybinding (find)? All the other keybindings can stay, but browser defaults find are easier to use than the built in one.

Thanks.
-Stuart

Harutyun Amirjanyan

unread,
Mar 7, 2012, 1:43:06 AM3/7/12
to ace-d...@googlegroups.com
assuming you are using latest version from master
editor.commands.removeCommand("find")
but browser search wont work since it will find only text displayed on
the screen
you probably should override find command to not use prompt
editor.commands.commands.find.exec=function(){...}

slawder

unread,
Mar 7, 2012, 11:32:47 AM3/7/12
to ace-d...@googlegroups.com
There we go. Thanks.
Reply all
Reply to author
Forward
0 new messages