History

getting textfield into focus

Wayne Chen committed 7 years ago

Commit a24cd411 parent 1375e857 files · +27 −18Browse files

Showing the changes to interface/src/Application.cpp (1 of 7 files). Show all

Unified · Split

interface/src/Application.cpp+7−5
@@ -5849,6 +5849,9 @@ void Application::setKeyboardFocusOverlay(const OverlayID& overlayID) { · 5848 unmodified lines
58495849 _keyboardFocusHighlight->setVisible(false);
58505850 }
58515851 }
5852+ if (overlayID == _loginDialogOverlayID) {
5853+ emit loginDialogFocusEnabled();
5854+ }
58525855 }
58535856 }
58545857
@@ -8178,9 +8181,9 @@ void Application::loadDomainConnectionDialog() { · 2323 unmodified lines
81788181 }
81798182
81808183 void Application::toggleLogDialog() {
8181− //if (getLoginDialogPoppedUp()) {
8182− // return;
8183− //}
8184+ if (getLoginDialogPoppedUp()) {
8185+ return;
8186+ }
81848187 if (! _logDialog) {
81858188 _logDialog = new LogDialog(nullptr, getLogger());
81868189 }
@@ -8749,8 +8752,7 @@ void Application::createLoginDialogOverlay() { · 562 unmodified lines
87498752 overlays.editOverlay(keyboard->getAnchorID(), properties);
87508753 keyboard->setResetKeyboardPositionOnRaise(false);
87518754 }
8752− auto loginDialogOverlay = std::dynamic_pointer_cast<Web3DOverlay>(getOverlays().getOverlay(_loginDialogOverlayID));
8753− loginDialogOverlay->setActiveFocus(true);
8755+ setKeyboardFocusOverlay(_loginDialogOverlayID);
87548756 getApplicationCompositor().getReticleInterface()->setAllowMouseCapture(false);
87558757 getApplicationCompositor().getReticleInterface()->setVisible(false);
87568758 if (!_loginStateManager.isSetUp()) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t