- Timestamp:
- 06/25/11 02:04:41 (14 years ago)
- Location:
- ps/trunk
- Files:
-
- 3 edited
-
binaries/data/config/default.cfg (modified) (3 diffs)
-
source/gui/CInput.cpp (modified) (8 diffs)
-
source/ps/CConsole.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/binaries/data/config/default.cfg
r9647 r9658 128 128 ; > CONSOLE SETTINGS 129 129 hotkey.console.toggle = BackQuote, F9 ; Open/close console 130 hotkey.console.copy = "Ctrl+C" ; Copy from console to clipboard 131 hotkey.console.paste = "Ctrl+V" ; Paste clipboard to console 132 hotkey.console.cut = "Ctrl+X" ; Cut the selected text and copy it to the clipboard 130 131 ; > CLIPBOARD CONTROLS 132 hotkey.copy = "Ctrl+C" ; Copy to clipboard 133 hotkey.paste = "Ctrl+V" ; Paste from clipboard 134 hotkey.cut = "Ctrl+X" ; Cut selected text and copy to the clipboard 133 135 134 136 ; > ENTITY SELECTION … … 176 178 hotkey.session.rotate.cw = RightBracket ; Rotate building placement preview clockwise 177 179 hotkey.session.rotate.ccw = LeftBracket ; Rotate building placement preview anticlockwise 178 hotkey.timewarp.fastforward = Space 179 hotkey.timewarp.rewind = Backspace 180 hotkey.timewarp.fastforward = Space ; If timewarp mode enabled, speed up the game 181 hotkey.timewarp.rewind = Backspace ; If timewarp mode enabled, go back to earlier point in the game 180 182 181 183 ; > OVERLAY KEYS … … 189 191 190 192 ; > GUI TEXTBOX HOTKEYS 191 hotkey.text.delete. word.left = "Ctrl+Backspace" ; Used in text input boxes to delete word to the left of cursor192 hotkey.text.delete. word.right = "Ctrl+Del" ; Used in text input boxes to delete word to the right of cursor193 hotkey.text.move. word.left = "Ctrl+LeftArrow" ; Move cursor to start of word to the left of cursor194 hotkey.text.move. word.right = "Ctrl+RightArrow" ; Move cursor to start of word to the left of cursor193 hotkey.text.delete.left = "Ctrl+Backspace" ; Delete word to the left of cursor 194 hotkey.text.delete.right = "Ctrl+Del" ; Delete word to the right of cursor 195 hotkey.text.move.left = "Ctrl+LeftArrow" ; Move cursor to start of word to the left of cursor 196 hotkey.text.move.right = "Ctrl+RightArrow" ; Move cursor to start of word to the right of cursor 195 197 196 198 ; > PROFILER -
ps/trunk/source/gui/CInput.cpp
r9646 r9658 444 444 445 445 std::string hotkey = static_cast<const char*>(ev->ev.user.data1); 446 if (hotkey == " console.paste")446 if (hotkey == "paste") 447 447 { 448 448 m_WantedX=0.0f; … … 451 451 if (text) 452 452 { 453 if (SelectingText()) 454 { 455 DeleteCurSelection(); 456 } 457 453 458 if (m_iBufferPos == (int)pCaption->length()) 454 459 *pCaption += text; … … 466 471 return IN_HANDLED; 467 472 } 468 else if (hotkey == "co nsole.copy" || hotkey == "console.cut")473 else if (hotkey == "copy" || hotkey == "cut") 469 474 { 470 475 m_WantedX=0.0f; … … 490 495 sys_clipboard_set(&text[0]); 491 496 492 if (hotkey == "c onsole.cut")497 if (hotkey == "cut") 493 498 { 494 499 DeleteCurSelection(); … … 498 503 return IN_HANDLED; 499 504 } 500 else if (hotkey == "text.delete. word.left")505 else if (hotkey == "text.delete.left") 501 506 { 502 507 m_WantedX=0.0f; … … 539 544 return IN_HANDLED; 540 545 } 541 else if (hotkey == "text.delete. word.right")546 else if (hotkey == "text.delete.right") 542 547 { 543 548 m_WantedX=0.0f; … … 571 576 return IN_HANDLED; 572 577 } 573 else if (hotkey == "text.move. word.left")578 else if (hotkey == "text.move.left") 574 579 { 575 580 m_WantedX=0.0f; … … 627 632 return IN_HANDLED; 628 633 } 629 else if (hotkey == "text.move. word.right")634 else if (hotkey == "text.move.right") 630 635 { 631 636 m_WantedX=0.0f; -
ps/trunk/source/ps/CConsole.cpp
r9362 r9658 699 699 return IN_HANDLED; 700 700 } 701 else if (g_Console->IsActive() && hotkey == "co nsole.copy")701 else if (g_Console->IsActive() && hotkey == "copy") 702 702 { 703 703 sys_clipboard_set(g_Console->GetBuffer()); 704 704 return IN_HANDLED; 705 705 } 706 else if (g_Console->IsActive() && hotkey == " console.paste")706 else if (g_Console->IsActive() && hotkey == "paste") 707 707 { 708 708 wchar_t* text = sys_clipboard_get();
Note:
See TracChangeset
for help on using the changeset viewer.
