mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
add bar
This commit is contained in:
1 parent
f58684991f
commit
e988f00cf8
15 files changed
+538
-140
No files matched your search
+3
-3
@@ -11,16 +11,16 @@ export default class Hotkey {
|
||||
player,
|
||||
notice,
|
||||
i18n,
|
||||
refs: { $container },
|
||||
refs: { $player },
|
||||
events: { proxy }
|
||||
} = this.art;
|
||||
|
||||
proxy(document, 'click', event => {
|
||||
this.art.focus = event.path.indexOf($container) > -1;
|
||||
this.art.isFocus = event.path.indexOf($player) > -1;
|
||||
});
|
||||
|
||||
proxy(window, 'keydown', event => {
|
||||
if (this.art.focus) {
|
||||
if (this.art.isFocus) {
|
||||
const tag = document.activeElement.tagName.toUpperCase();
|
||||
const editable = document.activeElement.getAttribute('contenteditable');
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user