From 78bbeb46245cd49430db3e41f7070a0962747c81 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 17 Feb 2015 07:56:17 +0000 Subject: [PATCH] [ENHANCEMENT) (Author: pinchy) Make keystroke ENTER trigger the shortcut editor dialog in Shortcut Mapper. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1344 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/WinControls/Grid/BabyGrid.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/PowerEditor/src/WinControls/Grid/BabyGrid.cpp b/PowerEditor/src/WinControls/Grid/BabyGrid.cpp index c5cfb933e..76c636b22 100644 --- a/PowerEditor/src/WinControls/Grid/BabyGrid.cpp +++ b/PowerEditor/src/WinControls/Grid/BabyGrid.cpp @@ -2226,22 +2226,13 @@ LRESULT CALLBACK GridProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) ReturnValue = DLGC_WANTARROWS|DLGC_WANTCHARS|DLGC_DEFPUSHBUTTON; if(wParam == 13) { - //same as arrow down + NotifyCellDbClicked(hWnd, SelfIndex); if(BGHS[SelfIndex].EDITING) { CloseEdit(hWnd,SelfIndex); } DrawCursor(hWnd,SelfIndex); - BGHS[SelfIndex].cursorrow ++; - if(BGHS[SelfIndex].cursorrow > BGHS[SelfIndex].rows) - { - BGHS[SelfIndex].cursorrow = BGHS[SelfIndex].rows; - } - else - { - NotifyRowChanged(hWnd,SelfIndex); - } - DrawCursor(hWnd,SelfIndex); + SetCurrentCellStatus(hWnd,SelfIndex); SetHomeRow(hWnd,SelfIndex,BGHS[SelfIndex].cursorrow,BGHS[SelfIndex].cursorcol); RefreshGrid(hWnd);