Shortcut setting in Webclient UI
Created by Jerry Wang, last modified on Dec 08, 2014
webclient ui能夠支持end user為特定的動(dòng)作設(shè)定鍵盤shortcut:
如上例子所示,focus 自動(dòng)聚焦到navigation bar上的鍵盤shortcut是Alt+Ctrl+W:
shortcut設(shè)置通過cl_thtmlb_personalization 讀取并存儲(chǔ)在internal table LT_SHORTCUTS:
系統(tǒng)將key G轉(zhuǎn)換成Javascript需要使用的key code 71:
最后動(dòng)態(tài)生成對(duì)應(yīng)的javascript code:
thtmlbKeyboardShortcuts[0] = new Object();thtmlbKeyboardShortcuts[0].alt =true;thtmlbKeyboardShortcuts[0].ctrl =true;thtmlbKeyboardShortcuts[0].shift =false;thtmlbKeyboardShortcuts[0].esc =false;thtmlbKeyboardShortcuts[0].keycode =71;thtmlbKeyboardShortcuts[0].func =thtmlbSetFocus;thtmlbKeyboardShortcuts[0].params = "FOCUS01";
在UI上做測試: 將focus 設(shè)置在其他控件上,然后點(diǎn)Alt+Ctrl+W, focus自動(dòng)返回到navigation bar上:
總結(jié)
以上是生活随笔為你收集整理的Shortcut setting in Webclient UI的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 曝字节跳动在香港扩大办公面积 2万平方英
- 下一篇: SAP CRM WebClient UI