Skip to content

Commit

Permalink
Merge pull request #1142 from AI4Bharat/revert-1141-analytic-org-ui
Browse files Browse the repository at this point in the history
Revert "Analytic org UI"
  • Loading branch information
aparna-aa authored Jan 17, 2025
2 parents 38dc506 + 11e5216 commit 436df26
Showing 1 changed file with 1 addition and 124 deletions.
125 changes: 1 addition & 124 deletions src/ui/pages/container/CL-Transcription/TranscriptionRightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ const TranscriptionRightPanel = ({
}, [currentIndexToSplitTextBlock, selectionStart, limit, currentOffset]);

const changeTranscriptHandler = (event, index, updateAcoustic = false) => {

const {
target: { value },
currentTarget,
Expand Down Expand Up @@ -1013,38 +1012,6 @@ const TranscriptionRightPanel = ({
? classes.boxHighlight
: ""
}`}
onKeyDown={(event) => {

if ( event.shiftKey && event.key == "<") {
const textArea = textRefs.current[index];
console.log("helo");

if (textArea) {
const start = textArea.selectionStart;
const end = textArea.selectionEnd;

const newStart = Math.max(start - 1, 0);
textArea.setSelectionRange(newStart, end);
event.preventDefault();
}
}
else if (event.shiftKey && event.key == ">") {
const textArea = textRefs.current[index];
if (textArea) {
const start = textArea.selectionStart;
const end = textArea.selectionEnd;

const newEnd = Math.min(end + 1, textArea.value.length);
textArea.setSelectionRange(start, newEnd);


event.preventDefault();
}
}
}}



dir={enableRTL_Typing ? "rtl" : "ltr"}
onMouseUp={(e) =>
onMouseUp(e, index + idxOffset)
Expand Down Expand Up @@ -1078,36 +1045,6 @@ const TranscriptionRightPanel = ({
false
);
}}
onKeyDown={(event) => {

if ( event.shiftKey && event.key == "<") {
const textArea = textRefs.current[index];
console.log("helo");

if (textArea) {
const start = textArea.selectionStart;
const end = textArea.selectionEnd;

const newStart = Math.max(start - 1, 0);
textArea.setSelectionRange(newStart, end);
event.preventDefault();
}
}
else if (event.shiftKey && event.key == ">") {
const textArea = textRefs.current[index];
if (textArea) {
const start = textArea.selectionStart;
const end = textArea.selectionEnd;

const newEnd = Math.min(end + 1, textArea.value.length);
textArea.setSelectionRange(start, newEnd);


event.preventDefault();
}
}
}}

onMouseUp={(e) => onMouseUp(e, index + idxOffset)}
value={item.text}
dir={enableRTL_Typing ? "rtl" : "ltr"}
Expand Down Expand Up @@ -1166,37 +1103,6 @@ const TranscriptionRightPanel = ({
? classes.boxHighlight
: ""
}`}
onKeyDown={(event) => {

if (event.shiftKey && event.key == "<") {
const textArea = textRefs.current[index];
console.log("helo");

if (textArea) {
const start = textArea.selectionStart;
const end = textArea.selectionEnd;

const newStart = Math.max(start - 1, 0);
textArea.setSelectionRange(newStart, end);
event.preventDefault();
}
}
else if ( event.shiftKey && event.key == ">") {
const textArea = textRefs.current[index];
if (textArea) {
const start = textArea.selectionStart;
const end = textArea.selectionEnd;

const newEnd = Math.min(end + 1, textArea.value.length);
textArea.setSelectionRange(start, newEnd);


event.preventDefault();
}
}
}}


dir={enableRTL_Typing ? "rtl" : "ltr"}
onFocus={() =>
showAcousticText &&
Expand Down Expand Up @@ -1226,36 +1132,7 @@ const TranscriptionRightPanel = ({
true
);
}}
onKeyDown={(event) => {

if ( event.shiftKey && event.key == "<") {
const textArea = textRefs.current[index];
console.log("helo");

if (textArea) {
const start = textArea.selectionStart;
const end = textArea.selectionEnd;

const newStart = Math.max(start - 1, 0);
textArea.setSelectionRange(newStart, end);
event.preventDefault();
}
}
else if (event.shiftKey && event.key == ">") {
const textArea = textRefs.current[index];
if (textArea) {
const start = textArea.selectionStart;
const end = textArea.selectionEnd;

const newEnd = Math.min(end + 1, textArea.value.length);
textArea.setSelectionRange(start, newEnd);
event.preventDefault();
}
}
}}


onFocus={() =>
onFocus={() =>
showAcousticText &&
populateAcoustic(index + idxOffset)
}
Expand Down

0 comments on commit 436df26

Please sign in to comment.