Files
blender-portable-repo/scripts/addons/RetopoFlow/retopoflow/html/keymaps_dialog.html
T
2026-03-17 14:30:01 -06:00

70 lines
5.1 KiB
HTML

<dialog id='keymapsystem' class="framed" on_keypress="key(event)">
<h1>RetopoFlow Keymaps Editor</h1>
<div class="contents">
<div id="details">
<p>You can use the RetopoFlow Keymaps Editor to configure some of the keymaps for RetopoFlow.</p>
</div>
<div id="keymaps"></div>
</div>
<div id="keymapsystem-buttons">
<button title="Save custom keymaps and close" on_mouseclick="ok()">OK</button>
<button title="Ignore any custom keymaps changes made and close" on_mouseclick="cancel()">Cancel</button>
<button title="Reset all keymaps to default" on_mouseclick="reset_all()">Reset All</button>
</div>
</dialog>
<div id='keymapsystem-cover'></div>
<dialog id='keymapconfig' class="framed">
<h1>Config: <span id="edit-action">Action</span></h1>
<div class="contents">
<div class="collection" id="edit-key-mouse">
<h1>Key or mouse interaction to start action</h1>
<div class="contents">
<table>
<tr>
<td>Keyboard</td>
<td><label id="edit-key-label" on_mouseclick="edit_capture()" on_keypress="edit_capture_key(event)"><input id="edit-key" type="radio" name="edit-key-mouse" value="key" title="Click to start capturing a key for action"><span id="edit-key-span" title="Click to start capturing a key for action"></span></label></td>
</tr><tr>
<td>Mouse Button</td>
<td>
<label id="edit-lmb-label"><input id="edit-lmb" type="radio" name="edit-key-mouse" value="lmb" on_mouseclick="edit_capture_mouse('LEFTMOUSE')" title="Click to use left mouse button (LMB) for action">Left (LMB)</label>
<label id="edit-mmb-label"><input id="edit-mmb" type="radio" name="edit-key-mouse" value="mmb" on_mouseclick="edit_capture_mouse('MIDDLEMOUSE')" title="Click to use middle mouse button (MMB) for action">Middle (MMB)</label>
<label id="edit-rmb-label"><input id="edit-rmb" type="radio" name="edit-key-mouse" value="rmb" on_mouseclick="edit_capture_mouse('RIGHTMOUSE')" title="Click to use right mouse button (RMB) for action">Right (RMB)</label>
</td>
</tr><tr>
<td>Mouse Wheel</td>
<td>
<label id="edit-wu-label"><input id="edit-wu" type="radio" name="edit-key-mouse" value="wu" on_mouseclick="edit_capture_mouse('WHEELUPMOUSE')" title="Click to use mouse wheel up for action">Wheel Up</label>
<label id="edit-wd-label"><input id="edit-wd" type="radio" name="edit-key-mouse" value="wd" on_mouseclick="edit_capture_mouse('WHEELDOWNMOUSE')" title="Click to use mouse wheel down for action">Wheel Down</label>
</td>
</tr>
</table>
</div>
</div>
<div class="collection" id="edit-modifiers">
<h1>Interaction modifiers</h1>
<div class="contents">
<label><input id="edit-ctrl" type="checkbox" value="ctrl" title="Check if control key (^) should be held for action"><!-- ^ Ctrl --></label>
<label><input id="edit-shift" type="checkbox" value="shift" title="Check if shift key (⇧) should be held for action"><!-- ⇧ Shift --></label>
<label><input id="edit-alt" type="checkbox" value="alt" title="Check if alt (⌥ / option) key should be held for action"><!-- ⌥ Alt --></label>
<label><input id="edit-oskey" type="checkbox" value="oskey" title="Check if oskey (⌘ / command) key should be held for action"><!-- ⌘ Cmd --></label>
</div>
</div>
<div class="collection" id="edit-type">
<h1>Interaction type</h1>
<div class="contents">
<label><input id="edit-press" type="radio" name="edit-type" value="press" title="Check if action occurs on press of key/mouse">Press</label>
<label><input id="edit-release" type="radio" name="edit-type" value="release" title="Check if action occurs on release of key/mouse (not supported at the moment)" disabled>Release</label>
<label><input id="edit-click" type="radio" name="edit-type" value="click" title="Check if action occurs on press/click of key/mouse">Click</label>
<label><input id="edit-double" type="radio" name="edit-type" value="double" title="Check if action occurs on double press/click of key/mouse">Double</label>
<label><input id="edit-drag" type="radio" name="edit-type" value="drag" title="Check if action occurs on drag of key/mouse">Drag</label>
</div>
</div>
</div>
<div id="config-buttons">
<button on_mouseclick="edit_ok()" title="Click to commit changes for this interaction">OK</button>
<button on_mouseclick="edit_cancel()" title="Click to cancel changes for this interaction">Cancel</button>
<button on_mouseclick="edit_delete()" title="Click to delete this interaction">Delete</button>
</div>
</dialog>