[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
This commit is contained in:
parent
6420dfb67e
commit
78bbeb4624
|
@ -2226,22 +2226,13 @@ LRESULT CALLBACK GridProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
ReturnValue = DLGC_WANTARROWS|DLGC_WANTCHARS|DLGC_DEFPUSHBUTTON;
|
ReturnValue = DLGC_WANTARROWS|DLGC_WANTCHARS|DLGC_DEFPUSHBUTTON;
|
||||||
if(wParam == 13)
|
if(wParam == 13)
|
||||||
{
|
{
|
||||||
//same as arrow down
|
NotifyCellDbClicked(hWnd, SelfIndex);
|
||||||
if(BGHS[SelfIndex].EDITING)
|
if(BGHS[SelfIndex].EDITING)
|
||||||
{
|
{
|
||||||
CloseEdit(hWnd,SelfIndex);
|
CloseEdit(hWnd,SelfIndex);
|
||||||
}
|
}
|
||||||
DrawCursor(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);
|
SetCurrentCellStatus(hWnd,SelfIndex);
|
||||||
SetHomeRow(hWnd,SelfIndex,BGHS[SelfIndex].cursorrow,BGHS[SelfIndex].cursorcol);
|
SetHomeRow(hWnd,SelfIndex,BGHS[SelfIndex].cursorrow,BGHS[SelfIndex].cursorcol);
|
||||||
RefreshGrid(hWnd);
|
RefreshGrid(hWnd);
|
||||||
|
|
Loading…
Reference in New Issue