GeezerVison is showing github.com — Please add a keyboard shortcut (Ctrl + Enter) for saving and closing the sort/filter dialog · Issue #7167 · pgadmin-org/pgadmin4
Please add a keyboard shortcut (Ctrl + Enter) for saving and closing the sort/filter dialog #7167DescriptionDescribe the solution you'd like
I would love a way to save and close the sort/filter dialog without having to use the mouse cursor. I usually try to hit just the Enter key but that creates a newline in the filter input field.
The sort/filter dialog can be opened with a keyboard shortcut, so we should also be able to save and close it with a keyboard shortcut too.
On Windows/Linux the shortcut that would work the best is probably Ctrl+Enter. On macOS the equivalent shortcut would be Cmd+Enter.
There are probably more dialogs that would benefit from this, so if this could be a general way to save and close most dialogs, that would be great.
Describe alternatives you've considered
N/A
Additional context

Activityflorian-sabonchi commented on Mar 8, 2024 Hello someone working on it? florian-sabonchi commented on Mar 8, 2024 This ist for PGAdmin Web? adityatoshniwal commented on Mar 8, 2024
This ist for PGAdmin Web?
The issue is for pgAdmin project so yes. adityatoshniwal commented on Mar 8, 2024
Hello someone working on it?
In general, if there is no assignee then it means no one is working on it. florian-sabonchi commented on Mar 8, 2024
Hello someone working on it?
In general, if there is no assignee then it means no one is working on it.
Okay, Thanks I want to avoid already someone working on it florian-sabonchi commented on Mar 8, 2024 You can assign me, I can look on it these day's Reacted by Aditya Toshniwal stefansundin commented on Jan 23, 2025 This issue is a bit stale so I am thinking of closing it as I'm cleaning up my old open issues and PRs. If this is going to be worked on then I can keep the issue open, but if not then I'll close this in a few weeks. adityatoshniwal commented on Jan 24, 2025
This issue is a bit stale so I am thinking of closing it as I'm cleaning up my old open issues and PRs. If this is going to be worked on then I can keep the issue open, but if not then I'll close this in a few weeks.
Someone might work on this someday. But the exact timeline cannot be guaranteed as it depends on the priority of all the issues. akshay-joshi commented on Jun 17, 2025 added 4 commits that reference this issue on Sep 23, 2026This issue will close once commit f9986cc is merged into the 'master' branch.f9986cc This issue will close once commit 447d7fc is merged into the 'master' branch.447d7fc This issue will close once commit e4138f3 is merged into the 'master' branch.e4138f3 This issue will close once commit 6ca950e is merged into the 'master' branch.6ca950e dpage commented on Oct 12, 2026 VIBVEL47 commented on Oct 29, 2026 Reopening: Ctrl/Cmd+Enter now saves and closes dialogs including Sort/Filter, but when focus is inside a SQL editor field the editor first inserts a newline, and that newline is saved.
Steps: table > View/Edit Data > All Rows > Sort/Filter, leave SQL Filter empty, click into it and press Cmd+Enter (Ctrl+Enter on Windows/Linux).
Expected: the dialog closes with no filter.
Actual: "syntax error at end of input" (the saved filter is "\n"). The same key in a function's Code field adds a trailing newline to the body.
Cause: the shared editor keeps CodeMirror's default Mod-Enter → insertBlankLine (web/pgadmin/static/js/components/ReactCodeMirror/components/Editor.jsx:284), and the dialog's Ctrl/Cmd+Enter handler (web/pgadmin/static/js/SchemaView/SchemaDialogView.jsx:194) saves without checking e.defaultPrevented.
Minor: the shortcut also submits an unchanged Sort/Filter while its Save button is disabled (in 'create' mode the change list is never empty; SchemaDialogView.jsx:131-135).
Tested on 9.19 (062099a), server mode.
MetadataMetadataStatusShow more project fields
DevelopmentNo branches or pull requestsIssue actions
|