Skip to content

Commit

Permalink
ue update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bosn committed Mar 11, 2014
1 parent cad90e5 commit e142cff
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ RAP会根据接口文档数据自动为您创建控制台,它以页面为单

RAP开放了Mock规则的API,QA或对此有需求的同学可以通过RAP API去访问和编辑Mock规则,为自动化测试提供便利。

RAP 快捷键
-------------------------------------

- `Alt + F` 工作区搜索,出现结果后通过上、下、回车键即可操作
- `Ctrl + Enter` 位于参数编辑时,根据当前行的参数标识或参数名称自动补全
- `Tab` 位于参数编辑时,自动切换到下一个位置
- `Shift + Tab` 位于参数编辑时,自动切换到上一个位置

RAP MOCK插件使用方法
--------------------------------------

Expand Down
1 change: 1 addition & 0 deletions UPDATELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### rap v1.0 ###
* [UE] 增加搜索快捷键Alt + F。2014-03-11
* [UE] 搜索优化-限制每类条目数最多6条,支持快捷键上、下、回车检索。 2014-03-10
* [BUG] 解决MockJS标签导致pageTester无法正确检验接口结构的问题 2014-03-10
* [功能] 参数现在可以按照identifier(标识符)顺序排序了,如果没有identifier或为空,则按照系统自动生成的参数ID(与创建时间顺序一致)排序 2014-03-10
Expand Down
8 changes: 8 additions & 0 deletions WebContent/stat/js/core/rap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,14 @@ if (!window.console) {
inputSearch.keyup(function() {
workspaceSearch(inputSearch.val(), arguments);
});

$(document.body).keypress(function(ev) {
if (ev.altKey && ev.charCode === 402) {
inputSearch.focus();
ev.preventDefault();
}
});

};

ws.workspaceSearchResultHandler = function(type, id) {
Expand Down

0 comments on commit e142cff

Please sign in to comment.