Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 'replace & search' shortcut to 'ctrl' + 'shift' + 'r' #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions backend/static/js/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,11 +736,11 @@ function changeTheme(theme = undefined) {
}

function expandEditor() {
if ($('#editorArea').hasClass("col-md-8")) {
$('#editorArea').removeClass("col-md-8").addClass("col-md-12");
if ($('#editorArea').hasClass("col-md-7")) {
$('#editorArea').removeClass("col-md-7").addClass("col-md-12");
$('#help').hide();
} else {
$('#editorArea').removeClass("col-md-12").addClass("col-md-8");
$('#editorArea').removeClass("col-md-12").addClass("col-md-7");
$('#help').show();
}
}
Expand Down
4 changes: 2 additions & 2 deletions backend/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h4>Features</h4>
<!-- The main editor (code mirror textarea) -->
<textarea id="query" class="form-control" placeholder="Start by typing SELECT or PREFIX ...">{% if prefill and not request.GET.test %}{{ prefill }}{% endif %}</textarea><br>
</div>
<div class="col-md-4" id="help" style="display:none;">
<div class="col-md-5" id="help" style="display:none;">
<div id="uiHelp">
<!-- The UI help box -->
<h4 style="margin-top: 0px;">QLever UI Shortcuts:</h4>
Expand Down Expand Up @@ -145,7 +145,7 @@ <h4 style="margin-top: 0px;">QLever UI Shortcuts:</h4>
<td><em>Search in editor (supports RegEx)</em></td>
</tr>
<tr>
<td><kbd>ctrl</kbd> + <kbd>r</kbd></td>
<td><kbd>ctrl</kbd> + <kbd>shift</kbd> + <kbd>r</kbd></td>
<td><em>Search and replace in editor</em></td>
</tr>
</table>
Expand Down