diff --git a/README.md b/README.md index 9dc1497b6ddbad0f13439a28b15a7ad9a80170e5..a7e15a317f3c9eb75bdd332f4d927f004fc23e31 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,6 @@ - 🍰 支持自定义引擎搜索。 - 🍰 多款主题切换。 - 🍰 支持暗黑模式。 -- 🍰 支持快捷键操作,一步到位。 - 🍰 支持后台管理, 无需部署。 - 🍰 支持从Chrome书签导入 @@ -128,16 +127,6 @@ server { -## 快捷键 -mac下是 `Command`,windows 下是 `Ctrl` - -- `ctrl+v` 查看信息 -- `ctrl+d` 开启或关闭暗黑模式 - -如对快捷键有特殊要求请发起 [issues](https://github.com/xjh22222228/nav/issues) - - - ## 开发构建 diff --git a/src/components/fixbar/index.component.ts b/src/components/fixbar/index.component.ts index 5dd84704e27b985c4479f7b2bcb8a5bd9440d618..c894d24eeb5a4bcfc4d4bdd743ca0dc8b959ce26 100644 --- a/src/components/fixbar/index.component.ts +++ b/src/components/fixbar/index.component.ts @@ -1,7 +1,6 @@ // Copyright @ 2018-2021 xiejiahe. All rights reserved. MIT license. // See https://github.com/xjh22222228/nav -import hotkeys from 'hotkeys-js' import config from '../../../nav.config' import { Component, Output, EventEmitter, Input, ChangeDetectionStrategy } from '@angular/core' import { isDark as isDarkFn, randomBgImg, queryString } from '../../utils' @@ -72,23 +71,6 @@ export class FixbarComponent { this.themeList = this.themeList.filter(t => { return t.url !== url }) - - this.initHotKeys() - } - - ngOnDestroy() { - hotkeys.unbind() - } - - initHotKeys() { - hotkeys(KEY_MAP.view, (e) => { - e.preventDefault() - this.viewInfo() - }) - hotkeys(KEY_MAP.dark, (e) => { - e.preventDefault() - this.toggleMode() - }) } viewInfo() { diff --git a/src/components/web-list/index.component.html b/src/components/web-list/index.component.html index 21aac1eb832214130edd5abf197a392b8c00de4e..d4daab985ea7c1e2aa4f914ac7f53ace11d29745 100644 --- a/src/components/web-list/index.component.html +++ b/src/components/web-list/index.component.html @@ -3,6 +3,7 @@ *ngIf="dataList.length > 0" cdkDropList (cdkDropListDropped)="handleDrop($event)" + cdkDropListOrientation="horizontal" >