📄 context5.html
字号:
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>DynarchMenu: context menus #5 -- menus upon keybindings</title> <style type="text/css"> @import url("../src/skin-win2k.css"); body { background-color: #ccc; }</style> <script type="text/javascript"> // WARNING: the following should be a path relative to site, like "/hmenu/" // here it is set relative to the current page only, which is not recommended // for production usage; it's useful in this case though to make the demo work // correctly on local systems. _dynarch_menu_url = "../src/"; function ourActionHandler(action) { var item = action.info; var triggerElement = item.menu.target; alert("\"" + item.label + "\" triggered on the element having innerHTML:\n\"" + triggerElement.innerHTML + "\""); }; </script> <script type="text/javascript" src="../src/hmenu.js"></script> <style type="text/css"> html { height: 100%; } a.hotspot { text-decoration: none; color: #f00; font-weight: bold; } a.different { text-decoration: none; color: #480; font-weight: bold; } </style> </head> <body onload="DynarchMenu.setup('menu', { context: true });" id="document"> <h1>Popup menus triggered by keybindings</h1> <blockquote> <p> This <a accesskey="p" class="hotspot context-align-bottom dynarch-menu-ctxbutton-both" href="#" onfocus="this.blur();this.onclick(event);return false;"><u>p</u>age</a> demonstrates how you can setup <a accesskey="m" class="hotspot context-align-bottom dynarch-menu-ctxbutton-both" href="#" onfocus="this.blur();this.onclick(event);return false;">popup <u>m</u>enus</a> that can be accessed by <a accesskey="k" class="hotspot context-align-bottom dynarch-menu-ctxbutton-both" href="#" onfocus="this.blur();this.onclick(event);return false;"><u>k</u>eybindings</a>. Just press i.e. ALT-P to trigger the menu on the 鈥減age鈥
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -