MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / toolbarNsNiClick

Function toolbarNsNiClick

nodeImage.js:3004–3016  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

3002 span.style.cssText =
3003 'font-size:12px;font-weight:600;color:#0d9488;padding:0 8px;white-space:nowrap;line-height:1;cursor:pointer;user-select:none;';
3004 function toolbarNsNiClick(e) {
3005 if (e) {
3006 e.preventDefault();
3007 e.stopPropagation();
3008 }
3009 try {
3010 if (e && e.shiftKey) {
3011 openNi();
3012 return;
3013 }
3014 niToolbarTriggerPickFiles();
3015 } catch (e2) {}
3016 }
3017 span.onclick = toolbarNsNiClick;
3018 span.onkeydown = function (e) {
3019 if (e.key === 'Enter' || e.key === ' ') toolbarNsNiClick(e);

Callers 1

Calls 2

openNiFunction · 0.85

Tested by

no test coverage detected