This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9658 for ps


Ignore:
Timestamp:
06/25/11 02:04:41 (14 years ago)
Author:
ben
Message:

Applies Kenny's patch for CInput pasting behavior (fixes #640)
Simplifies some clipboard hotkeys

Location:
ps/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/config/default.cfg

    r9647 r9658  
    128128; > CONSOLE SETTINGS
    129129hotkey.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
     132hotkey.copy = "Ctrl+C"              ; Copy to clipboard
     133hotkey.paste = "Ctrl+V"             ; Paste from clipboard
     134hotkey.cut = "Ctrl+X"               ; Cut selected text and copy to the clipboard
    133135
    134136; > ENTITY SELECTION
     
    176178hotkey.session.rotate.cw = RightBracket     ; Rotate building placement preview clockwise
    177179hotkey.session.rotate.ccw = LeftBracket     ; Rotate building placement preview anticlockwise
    178 hotkey.timewarp.fastforward = Space
    179 hotkey.timewarp.rewind = Backspace
     180hotkey.timewarp.fastforward = Space         ; If timewarp mode enabled, speed up the game
     181hotkey.timewarp.rewind = Backspace          ; If timewarp mode enabled, go back to earlier point in the game
    180182
    181183; > OVERLAY KEYS
     
    189191
    190192; > GUI TEXTBOX HOTKEYS
    191 hotkey.text.delete.word.left = "Ctrl+Backspace"    ; Used in text input boxes to delete word to the left of cursor
    192 hotkey.text.delete.word.right = "Ctrl+Del"         ; Used in text input boxes to delete word to the right of cursor
    193 hotkey.text.move.word.left = "Ctrl+LeftArrow"      ; Move cursor to start of word to the left of cursor
    194 hotkey.text.move.word.right = "Ctrl+RightArrow"    ; Move cursor to start of word to the left of cursor
     193hotkey.text.delete.left = "Ctrl+Backspace"    ; Delete word to the left of cursor
     194hotkey.text.delete.right = "Ctrl+Del"         ; Delete word to the right of cursor
     195hotkey.text.move.left = "Ctrl+LeftArrow"      ; Move cursor to start of word to the left of cursor
     196hotkey.text.move.right = "Ctrl+RightArrow"    ; Move cursor to start of word to the right of cursor
    195197
    196198; > PROFILER
  • ps/trunk/source/gui/CInput.cpp

    r9646 r9658  
    444444
    445445    std::string hotkey = static_cast<const char*>(ev->ev.user.data1);
    446     if (hotkey == "console.paste")
     446    if (hotkey == "paste")
    447447    {
    448448        m_WantedX=0.0f;
     
    451451        if (text)
    452452        {
     453            if (SelectingText())
     454            {
     455                DeleteCurSelection();
     456            }
     457
    453458            if (m_iBufferPos == (int)pCaption->length())
    454459                *pCaption += text;
     
    466471        return IN_HANDLED;
    467472    }
    468     else if (hotkey == "console.copy" || hotkey == "console.cut")
     473    else if (hotkey == "copy" || hotkey == "cut")
    469474    {
    470475        m_WantedX=0.0f;
     
    490495            sys_clipboard_set(&text[0]);
    491496
    492             if (hotkey == "console.cut")
     497            if (hotkey == "cut")
    493498            {
    494499                DeleteCurSelection();
     
    498503        return IN_HANDLED;
    499504    }
    500     else if (hotkey == "text.delete.word.left")
     505    else if (hotkey == "text.delete.left")
    501506    {
    502507        m_WantedX=0.0f;
     
    539544        return IN_HANDLED;
    540545    }
    541     else if (hotkey == "text.delete.word.right")
     546    else if (hotkey == "text.delete.right")
    542547    {
    543548        m_WantedX=0.0f;
     
    571576        return IN_HANDLED;         
    572577    }
    573     else if (hotkey == "text.move.word.left")
     578    else if (hotkey == "text.move.left")
    574579    {
    575580        m_WantedX=0.0f;
     
    627632        return IN_HANDLED;
    628633    }
    629     else if (hotkey == "text.move.word.right")
     634    else if (hotkey == "text.move.right")
    630635    {
    631636        m_WantedX=0.0f;
  • ps/trunk/source/ps/CConsole.cpp

    r9362 r9658  
    699699            return IN_HANDLED;
    700700        }
    701         else if (g_Console->IsActive() && hotkey == "console.copy")
     701        else if (g_Console->IsActive() && hotkey == "copy")
    702702        {
    703703            sys_clipboard_set(g_Console->GetBuffer());
    704704            return IN_HANDLED;
    705705        }
    706         else if (g_Console->IsActive() && hotkey == "console.paste")
     706        else if (g_Console->IsActive() && hotkey == "paste")
    707707        {
    708708            wchar_t* text = sys_clipboard_get();
Note: See TracChangeset for help on using the changeset viewer.