mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-12-27 01:42:11 +08:00
Fix element type check on shortcut actions
This commit is contained in:
parent
7bad232a86
commit
a3018dc522
1 changed files with 3 additions and 3 deletions
|
@ -1064,17 +1064,17 @@ const Session = {
|
|||
|
||||
isCell(focusableId) {
|
||||
const el = this.getFocusableEl(focusableId);
|
||||
return el.dataset.element === "cell";
|
||||
return el.hasAttribute("data-el-cell");
|
||||
},
|
||||
|
||||
isSection(focusableId) {
|
||||
const el = this.getFocusableEl(focusableId);
|
||||
return el.dataset.element === "section-headline";
|
||||
return el.hasAttribute("data-el-section-headline");
|
||||
},
|
||||
|
||||
isNotebook(focusableId) {
|
||||
const el = this.getFocusableEl(focusableId);
|
||||
return el.dataset.element === "notebook-headline";
|
||||
return el.hasAttribute("data-el-notebook-headline");
|
||||
},
|
||||
|
||||
getFocusableEl(focusableId) {
|
||||
|
|
Loading…
Reference in a new issue