mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 05:07:06 +08:00
chore: remove useless code
This commit is contained in:
@@ -28,8 +28,6 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const down = (e: KeyboardEvent) => {
|
const down = (e: KeyboardEvent) => {
|
||||||
if (e.key === 'k' && e.metaKey) {
|
if (e.key === 'k' && e.metaKey) {
|
||||||
console.log(e);
|
|
||||||
|
|
||||||
const selection = window.getSelection();
|
const selection = window.getSelection();
|
||||||
if (selection?.toString()) {
|
if (selection?.toString()) {
|
||||||
triggerQuickSearchModal(false);
|
triggerQuickSearchModal(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user