diff --git a/packages/appreader/src/index.jsx b/packages/appreader/src/index.jsx index 0b151f5e6..5453b3cd2 100644 --- a/packages/appreader/src/index.jsx +++ b/packages/appreader/src/index.jsx @@ -33,7 +33,6 @@ const App = () => { className="disable-webkit-callout" > { const bigint = parseInt(hex.substring(1), 16) const r = (bigint >> 16) & 255 diff --git a/packages/web/components/templates/article/ArticleContainer.tsx b/packages/web/components/templates/article/ArticleContainer.tsx index f68dfc600..2976227a9 100644 --- a/packages/web/components/templates/article/ArticleContainer.tsx +++ b/packages/web/components/templates/article/ArticleContainer.tsx @@ -10,19 +10,11 @@ import { MutableRefObject, useEffect, useState } from 'react' import { ReportIssuesModal } from './ReportIssuesModal' import { reportIssueMutation } from '../../../lib/networking/mutations/reportIssueMutation' import { ArticleHeaderToolbar } from './ArticleHeaderToolbar' -import { articleKeyboardCommands } from '../../../lib/keyboardShortcuts/navigationShortcuts' -import { useKeyboardShortcuts } from '../../../lib/keyboardShortcuts/useKeyboardShortcuts' -import { ShareArticleModal } from './ShareArticleModal' import { userPersonalizationMutation } from '../../../lib/networking/mutations/userPersonalizationMutation' -import { webBaseURL } from '../../../lib/appConfig' import { updateThemeLocally } from '../../../lib/themeUpdater' -import { EditLabelsModal } from './EditLabelsModal' -import Script from 'next/script' -import { useRouter } from 'next/router' import { ArticleMutations } from '../../../lib/articleActions' type ArticleContainerProps = { - viewerUsername: string article: ArticleAttributes articleMutations: ArticleMutations scrollElementRef: MutableRefObject @@ -35,7 +27,6 @@ type ArticleContainerProps = { } export function ArticleContainer(props: ArticleContainerProps): JSX.Element { - const router = useRouter() const [showShareModal, setShowShareModal] = useState(false) const [showLabelsModal, setShowLabelsModal] = useState(false) const [showNotesSidebar, setShowNotesSidebar] = useState(false) @@ -50,28 +41,6 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element { await userPersonalizationMutation({ fontSize: newFontSize }) } - useKeyboardShortcuts( - articleKeyboardCommands(router, async (action) => { - switch (action) { - case 'openOriginalArticle': - const url = props.article.url - if (url) { - window.open(url, '_blank') - } - break - case 'incrementFontSize': - await updateFontSize(Math.min(fontSize + 2, 28)) - break - case 'decrementFontSize': - await updateFontSize(Math.max(fontSize - 2, 10)) - break - case 'editLabels': - setShowLabelsModal(true) - break - } - }) - ) - // Listen for font size and color mode change events sent from host apps (ios, macos...) useEffect(() => { const increaseFontSize = async () => { @@ -123,16 +92,6 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element { return ( <> - {!props.isAppleAppEmbed && ( - <> -