Skip to content

Commit

Permalink
feat: 加回选中后动作功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Higurashi-kagome committed Apr 22, 2024
1 parent 5c40327 commit 5a357bb
Show file tree
Hide file tree
Showing 7 changed files with 1,016 additions and 996 deletions.
2 changes: 2 additions & 0 deletions src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { initTheme } from './content/modules/content-theme'
import { initThoughtEdit } from './content/modules/content-thought-edit'
import { initFancyBox } from './content/modules/fancybox'
import { initConfirm } from './content/modules/content-confirm'
import { initSelectAction } from './content/modules/content-select-action'
import './content/modules/content-copy'
import './content/static/css/content-theme-switch.css'
import './content/static/css/common.css'
Expand All @@ -30,6 +31,7 @@ initTheme()
initScrollBar()
initSearchNote()
initNotesMenu()
initSelectAction()
initRightClick()
initThoughtEdit()
initFancyBox()
Expand Down
6 changes: 3 additions & 3 deletions src/content/modules/content-select-action.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import $ from 'jquery'

import { SelectActionOptions } from '../../worker/worker-vars'
import { hideToolbar, hideSelection } from './content-hide'
import { hideSelection, hideToolbar } from './content-hide'

function initSelectAction() {
console.log('initSelectAction')
// 点击元素
// eslint-disable-next-line @typescript-eslint/ban-types
const clickTarget = (callback?: Function) => {
// Ctrl 按键按下时不点击
// TODO 支持按照禁用时的点击选项改变选中后动作
// Ctrl 按键按下时不点击
// TODO 支持按照禁用时的点击选项改变选中后动作
if (window.pressedKeys.get(17)) {
if (callback) callback()
return
Expand Down
387 changes: 194 additions & 193 deletions src/options/options-help.ts

Large diffs are not rendered by default.

Loading

0 comments on commit 5a357bb

Please sign in to comment.