File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed
Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export { default as cVSelectedMsgContextMenuEmbedMsg } from './actions/cVSelecte
3838export { default as cVSelectedMsgContextMenuRemovePin } from './actions/cVSelectedMsgContextMenuRemovePin' ;
3939export { default as cVSelectedMsgDetailButton } from './actions/cVSelectedMsgDetailButton' ;
4040export { default as cVSelectedMsgSpoilers } from './actions/cVSelectedMsgSpoilers' ;
41+ export { default as cVSelectedMsgStampPicker } from './actions/cVSelectedMsgStampPicker' ;
4142export { default as cVSelectedMsgStamps } from './actions/cVSelectedMsgStamps' ;
4243export { default as cNAIsNotAllToggleButton } from './actions/cNAIsNotAllToggleButton' ;
4344export { default as cNAIsPerChToggleButton } from './actions/cNAIsPerChToggleButton' ;
Original file line number Diff line number Diff line change 1+ import selectors from '../selectors' ;
2+ import { click } from './utils/dispatchEvent' ;
3+ import lazy from '@/utils/lazy' ;
4+
5+ const cVSelectedMsgStampPicker = ( ) => {
6+ lazy ( ( ) => {
7+ const stampPickerSelector = selectors . channelViewMsgToolStamp ( ) ;
8+ if ( ! stampPickerSelector ) return ;
9+ const stampPickerEl =
10+ document . querySelector < SVGElement > ( stampPickerSelector ) ;
11+ if ( ! stampPickerEl ) return ;
12+
13+ click ( stampPickerEl ) ;
14+ } ) ;
15+ } ;
16+
17+ export default cVSelectedMsgStampPicker ;
Original file line number Diff line number Diff line change @@ -267,14 +267,14 @@ const defaultTasks: Task[] = [
267267 actions : [ 'sToBottomOfV' ] ,
268268 } ,
269269 {
270- name : '最新のメッセージのスタンプピッカーを開く ' ,
270+ name : '選択中のメッセージのスタンプピッカーを開く ' ,
271271 keybinds : [
272272 {
273273 key : 'p' ,
274274 conditions : [ 'niFInputOrTextarea' ] ,
275275 } ,
276276 ] ,
277- actions : [ 'cVLatestMsgStampPicker ' ] ,
277+ actions : [ 'cVSelectedMsgStampPicker ' ] ,
278278 } ,
279279 {
280280 name : 'サイドバーを開く' ,
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ const zAction = z.union([
3939 z . literal ( 'cV7thLatestMsgStampPicker' ) ,
4040 z . literal ( 'cV8thLatestMsgStampPicker' ) ,
4141 z . literal ( 'cV9thLatestMsgStampPicker' ) ,
42+ z . literal ( 'cVSelectedMsgStampPicker' ) ,
4243 z . literal ( 'cVLatestMsgContextMenuRemovePin' ) ,
4344 z . literal ( 'cVLatestMsgContextMenuAddPin' ) ,
4445 z . literal ( 'cVLatestMsgContextMenuClipMsg' ) ,
You can’t perform that action at this time.
0 commit comments