mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-04 14:41:47 +01:00
This commit is contained in:
parent
70140ade9e
commit
bff6f06999
2 changed files with 2 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
|
|||
});
|
||||
let customHTML = "";
|
||||
window.siyuan.storage[Constants.LOCAL_AI].forEach((item: { name: string, memo: string }, index: number) => {
|
||||
customHTML += `<div data-action="${escapeAttr(item.memo || item.name)}" data-index="${index}" class="b3-list-item b3-list-item--narrow ariaLabel" aria-label="${escapeAriaLabel(item.memo)}">
|
||||
customHTML += `<div data-action="${escapeAttr(item.memo || item.name)}" data-position="10west" data-index="${index}" class="b3-list-item b3-list-item--narrow ariaLabel" aria-label="${escapeAriaLabel(item.memo)}">
|
||||
<span class="b3-list-item__text">${escapeHtml(item.name)}</span>
|
||||
<span data-type="edit" class="b3-list-item__action"><svg><use xlink:href="#iconEdit"></use></svg></span>
|
||||
</div>`;
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ export class Menu {
|
|||
|
||||
private preventDefault(event: KeyboardEvent) {
|
||||
if (!hasClosestByClassName(event.target as Element, "b3-menu") &&
|
||||
!hasClosestByClassName(event.target as Element, "tooltip") &&
|
||||
// 移动端底部键盘菜单
|
||||
!hasClosestByClassName(event.target as Element, "keyboard__bar")) {
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue