diff --git a/src/components/BSMap.vue b/src/components/BSMap.vue index da83c6b..f3cd127 100644 --- a/src/components/BSMap.vue +++ b/src/components/BSMap.vue @@ -1,6 +1,6 @@ @@ -41,6 +41,14 @@ const style = computed(() => ({ '--bs-map-cols': cols.value, }) as CSSProperties); +function isFocused(row: number): boolean { + const { selection } = editorStore; + return ( + typeof selection != 'undefined' && + selection.row == row + ); +} + function handleSelect(row: number, offset: number, length: number): void { editorStore.selection = { row: row, diff --git a/src/components/BSMap/BSCell.vue b/src/components/BSMap/BSCell.vue index 0da93ce..f38b110 100644 --- a/src/components/BSMap/BSCell.vue +++ b/src/components/BSMap/BSCell.vue @@ -1,5 +1,5 @@